rstudio / rstudio/helm

Is `config.sessionStartupCustom` possible on Workbench?

Open
#344 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

team: workbench
Dominant language
Markdown
Stars
46
Forks
40
Avg merge
4h 3m
Merged PRs (30d)
6

Description

The Workbench Helm chart currently has a config.startupCustom key. For example:

https://github.com/rstudio/helm/blob/c48d94fda4562795ca9010f334c2c11271a8073f/examples/auto-scaling/rstudio-workbench/values.yaml#L148-L162

Would it be possible to have scripts that run when a IDE session starts? The motivation for this is a want to create a symlink on the session container before the IDE starts. For example:

config:
  session:
    repos.conf:
      RSPM: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest
      CRAN: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest
  sessionStartupCustom:
    symlink-odbc.sh: |
      #!/bin/bash
      ln -s /mnt/session-secret/odbc.ini /ect/odbc.ini
  sessionSecret:
    odbc.ini: |
      [ProjectAbcDatabase]
      Database=project_abc
      Driver=PostgreSQL
      Password=password
      Port=5432
      Servername=database-postgresql
      UserName=posit_team

Or maybe there is a way to already do this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Workbench Helm chart values.yaml example at the linked lines and trace how config.startupCustom is handled. Determine whether an equivalent sessionStartupCustom setting can be supported for IDE session startup, and verify that the documented symlink example runs before the session starts.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm
Domain
infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.