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

support passing multiple env files #2744

Open
cmatKhan opened this issue Mar 12, 2024 · 1 comment · May be fixed by #2855
Open

support passing multiple env files #2744

cmatKhan opened this issue Mar 12, 2024 · 1 comment · May be fixed by #2855
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@cmatKhan
Copy link

Is your feature request related to a problem? Please describe.

I would like to be able to pass environmental variables that are stored in separate files, eg:

            singularity exec --bind .:/app \
                             --env-file ./.envs/.local/.django \
                             --env-file ./.envs/.local/.postgres \
                             --env-file ./.envs/.local/.regulatory_data \
                             $django_sif bash -c 'cd /app && /start'

Describe the solution you'd like

The environmental variables from each file should be set in the container environment, with later files taking priority

Describe alternatives you've considered

Keeping the environmental variables in separate files can be useful, but of course this can be concatenated and provided to --env-file as it is currently implemented

@cmatKhan cmatKhan added the enhancement New feature or request label Mar 12, 2024
@dtrudg dtrudg added the good first issue Good for newcomers label Mar 13, 2024
@dtrudg
Copy link
Member

dtrudg commented Mar 13, 2024

Hi @cmatKhan - this seems like it'd be a useful feature.

If you or anyone else would be interested in contributing a PR to implement it then I don't see any reason why it could not be merged.

Otherwise we'll keep it on the list of suggested features for future development, which we evaluate periodically.

@dtrudg dtrudg added this to the SingularityCE 4.2.0 milestone Apr 26, 2024
cyanezstange added a commit to cyanezstange/singularity that referenced this issue Apr 30, 2024
@cyanezstange cyanezstange linked a pull request Apr 30, 2024 that will close this issue
@cyanezstange cyanezstange self-assigned this May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants