Skip to content

Commit

Permalink
Bugfix/docker env (#201)
Browse files Browse the repository at this point in the history
* update docker container to activate micromamba env correctly
  • Loading branch information
laestrada authored Apr 11, 2024
1 parent 460985d commit 01492f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ echo "export MAMBA_ROOT_PREFIX=/opt/micromamba" >> /etc/bashrc
echo 'eval "$(/opt/micromamba/bin/micromamba shell hook -s posix)"' >> /etc/bashrc

# set alias to use conda and micromamba interchangeably
echo "alias conda='micromamba'" >> /etc/bashrc
echo $'conda() {\n micromamba "$@"\n}' >> /etc/bashrc
2 changes: 1 addition & 1 deletion resources/containers/container_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ OutputPath: "/home/al2/imi_output_dir"
DataPath: "/home/al2/ExtData"

## Conda environment files
CondaFile: "/opt/conda/etc/profile.d/conda.sh"
CondaFile: "/etc/bashrc"
CondaEnv: "imi_env"

## Download initial restart file from AWS S3?
Expand Down
3 changes: 1 addition & 2 deletions resources/containers/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ if [[ "x${IMI_CONFIG_PATH}" != "x" ]]; then
else
config_file="config.yml"
# remove default config file and replace with docker config file
rm config.yml
mv resources/containers/container_config.yml config.yml
cp resources/containers/container_config.yml config.yml
fi

# override specific config file vars with env variables of
Expand Down

0 comments on commit 01492f3

Please sign in to comment.