Skip to content

feat: pass env variables to container#282

Merged
nazarfil merged 1 commit into
mainfrom
feat/env-in-workspace
Jun 27, 2025
Merged

feat: pass env variables to container#282
nazarfil merged 1 commit into
mainfrom
feat/env-in-workspace

Conversation

@yannforget

@yannforget yannforget commented Jun 26, 2025

Copy link
Copy Markdown
Member

Add a way to pass env variables to containers through workspace.yaml.

Changes

Parse env section in workspace.yaml and add the env variables to the local workspace config.

Might be better to pass env variables through an argument of openhexa pipelines run instead? Or fetch these values automatically in the SDK instead of requiring the user to write down these env variables?

This allows to do things such as:

  • Using connections from remote workspace in local runs
  • Reading & writing datasets from remote workspace in local runs
  • Reading & writing to workspace database in local runs
  • Potentially also do all that in CI/CD pipelines to test pipelines before deployment

Screenshots / screencast

workspace.yaml:

Screenshot from 2025-06-26 16-03-11

Reading and writing remote datasets:

image

@yolanfery

Copy link
Copy Markdown
Contributor

Might be better to pass env variables through an argument of openhexa pipelines run instead? Or fetch these values automatically in the SDK instead of requiring the user to write down these env variables?

Might be yes, but we can definitely start with this

@yolanfery yolanfery left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cool stuff, nice !  

@nazarfil nazarfil merged commit b99d881 into main Jun 27, 2025
4 checks passed
@nazarfil nazarfil deleted the feat/env-in-workspace branch June 27, 2025 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants