-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make entrypoint support installing unreleased versions
- Loading branch information
Showing
3 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
FROM ghcr.io/diracgrid/diracx/base | ||
|
||
|
||
# Copying in ENTRYPOINT script and environment specification | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/ | ||
|
||
ENV DIRACX_IMAGE_PACKAGES=core,client,api,cli,. | ||
|
||
RUN micromamba install --freeze-installed --yes --file /tmp/environment.yml --name=base && \ | ||
micromamba clean --all --yes --force-pkgs-dirs && \ | ||
rm -rf /tmp/environment.yml | ||
|
||
|
||
# In many clusters the container is ran as a random uid for security reasons. | ||
# If we mark the conda directory as group 0 and give it group write permissions | ||
# then we're still able to manage the environment from inside the container. | ||
USER 0 | ||
RUN chown -R $MAMBA_USER:0 /opt/conda && chmod -R g=u /opt/conda | ||
USER $MAMBA_USER | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters