-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
team: workbenchPosit Workbench related issuePosit Workbench related issue
Description
The Workbench Helm chart currently has a config.startupCustom key. For example:
helm/examples/auto-scaling/rstudio-workbench/values.yaml
Lines 148 to 162 in c48d94f
| startupCustom: | |
| create-users-ongoing.sh: | | |
| #!/bin/bash | |
| for user in users.txt; do | |
| USERNAME=$(cat users.txt | grep -v '^\s*#'| cut -d: -f1) | |
| USERID=$(cat users.txt | grep -v '^\s*#'| cut -d: -f2) | |
| echo "$USERNAME" | |
| PASSWORD=$(cat users.txt | grep -v '^\s*#'| cut -d: -f3) | |
| useradd -u $USERID -m -s /bin/bash -N $USERNAME | |
| echo "$USERNAME:$PASSWORD" | sudo chpasswd | |
| done; | |
| echo 'sleeping forever' | |
| while :; do read; done |
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_teamOr maybe there is a way to already do this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
team: workbenchPosit Workbench related issuePosit Workbench related issue