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

Use ENV for environment variable persistence #1790

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

c-ewing
Copy link
Contributor

@c-ewing c-ewing commented Dec 3, 2024

Description

As per #1789, this PR changes the usage of /etc/profile.d/alicevision.sh as a login script to set environment variables to the docker ENV directive.

Features list

Implementation remarks

This implementation relies on alicevision.sh not being used elsewhere. It does not appear to ever be copied out of the container/image.

Switch Dockerfile_centos to use ENV instead of profile.d for persisting environment variables
Switch Dockerfile_centos_deps to use ENV instead of profile.d for persisting environment variables
Switch Dockerfile_ubuntu to use ENV instead of profile.d for persisting environment variables
Switch Dockerfile_ubuntu_deps to use ENV instead of profile.d for persisting environment variables
Revert CPU_CORES change as ENV cannot be dynamically set based on a script.
Revert CPU_CORES change as ENV cannot be dynamically set based on a script.
Revert CPU_CORES change as ENV cannot be dynamically set based on a script.
Revert CPU_CORES change as ENV cannot be dynamically set based on a script.
@c-ewing
Copy link
Contributor Author

c-ewing commented Dec 4, 2024

Removed the change to CPU_CORES as ENV cannot be dynamically set via script.

Additionally I believe cmake -j is being used incorrectly but that's for another PR/commit

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.

Replace /etc/profile.d for Environment Variable Persistence in Dockerfiles
1 participant