Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: support custom env variables in Renku 2.0 #3227

Merged

Conversation

andre-code
Copy link
Contributor

@andre-code andre-code commented Jul 2, 2024

PR to Add Custom Environment Variables in the Custom Session Launcher

add custom launcher

What's Included:

  • Added support for environment variables (mount_directory, working_directory, port, gid, uid, command, args) when creating a new custom image launcher.
  • Updated existing launchers to support environment variables.
  • Updated launcher view to add environment variables.
  • Merged custom and global launcher forms.

What's Not Included ‼️:

To launch a new session with custom environment variables will be handled in a separate PR #3296.

Pitch: https://www.notion.so/renku/Support-Jupyter-free-images-2-0-a639737339754a2db10e836471890c20

/deploy

@andre-code andre-code changed the title feat: make custom image env more custom v2 [wip] feat: make custom image env more custom v2 Jul 2, 2024
@andre-code andre-code force-pushed the andrea/custom-launcher-jupyter-free branch 2 times, most recently from d684830 to c66f883 Compare July 5, 2024 07:55
@RenkuBot
Copy link
Contributor

RenkuBot commented Jul 5, 2024

You can access the deployment of this PR at https://renku-ci-ui-3227.dev.renku.ch

@andre-code andre-code force-pushed the andrea/custom-launcher-jupyter-free branch from c66f883 to e3551cf Compare July 5, 2024 12:21
@andre-code andre-code force-pushed the andrea/custom-launcher-jupyter-free branch from e3551cf to 8bdf963 Compare July 5, 2024 12:41
@andre-code andre-code force-pushed the andrea/custom-launcher-jupyter-free branch from 8bdf963 to ca9f1c6 Compare July 5, 2024 14:01
@andre-code andre-code force-pushed the andrea/custom-launcher-jupyter-free branch from 30aac51 to 9413496 Compare August 5, 2024 08:35
@andre-code andre-code force-pushed the andrea/custom-launcher-jupyter-free branch from fa845b4 to b207f09 Compare August 23, 2024 09:47
@andre-code andre-code force-pushed the andrea/custom-launcher-jupyter-free branch from b207f09 to d2ab916 Compare August 23, 2024 09:58
@andre-code
Copy link
Contributor Author

Thanks @leafty for your review ✨
Here the new issue: #3345
Changes included here ad3e021

@andre-code andre-code requested a review from leafty October 9, 2024 09:39
Copy link
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

- fix typo 'advance in files and variables
- reword container image description and placeholder
- change label Default URL for Default URL path
- validate that the JSON is a JSON array of strings
- return an object with error message when parse JSON array of strings
- remove submitError and only use the form validation
- display an error message when can't safeStringify the command or arg
- add ENVIRONMENT_VALUES_DESCRIPTION constant
- fix typo in form label
- use array instead of string in cx function
@andre-code andre-code force-pushed the andrea/custom-launcher-jupyter-free branch from ad3e021 to bd9e30a Compare October 11, 2024 08:27
@andre-code andre-code merged commit 69f25bb into andrea/jupyter-free-build Oct 11, 2024
18 of 19 checks passed
@andre-code andre-code deleted the andrea/custom-launcher-jupyter-free branch October 11, 2024 10:40
@RenkuBot
Copy link
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

andre-code added a commit that referenced this pull request Nov 12, 2024
* feat!: support custom env variables in Renku 2.0  (#3227)
* feat: use data-service sessions endpoint (#3296)
* feat: show an error if the docker image identifier is invalid (#3369)

BREAKING CHANGES: requires renku-data-services >= v0.26.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants