Skip to content

Commit

Permalink
Dockerfile Update - Julia (#732)
Browse files Browse the repository at this point in the history
RMG-Py environment has now been updated to restrict the Julia version.
Since this has been done, we do not need to patch the environment file
ourselves.
  • Loading branch information
calvinp0 authored Feb 13, 2024
2 parents 2a90879 + 523a49c commit ca95070
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
paths:
- "Dockerfile"
- ".github/workflows/docker_build.yml"
types: [opened, synchronize, reopened, ready_for_review, review_requested]
types: [opened, synchronize, reopened, ready_for_review]
#workflow_dispatch: # Add this line to enable manual trigger

jobs:
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ RUN git clone -b main https://github.com/ReactionMechanismGenerator/RMG-Py.git \
WORKDIR /home/rmguser/Code/RMG-Py

# Install RMG-Py and then clean up the micromamba cache
# Patch: RMG-Py currently unrestricts the Julia version, which causes the build to fail. We need to restrict the version to <1.10.0
RUN sed -i 's/conda-forge::julia>=1.8.5,!=1.9.0/conda-forge::julia>=1.8.5,!=1.9.0, <1.10.0/g' environment.yml && \
micromamba create -y -f environment.yml && \
RUN micromamba create -y -f environment.yml && \
micromamba install -n rmg_env -c conda-forge conda && \
micromamba clean --all -f -y

Expand Down Expand Up @@ -118,7 +116,9 @@ RUN echo "alias rmge='micromamba activate rmg_env'" >> ~/.bashrc \
&& echo "alias rmgdb='cd \$rmgdb_path'" >> ~/.bashrc \
&& echo "alias arcode='cd /home/rmguser/Code/ARC'" >> ~/.bashrc \
&& echo "alias conda='micromamba'" >> ~/.bashrc \
&& echo "alias mamba='micromamba'" >> ~/.bashrc
&& echo "alias mamba='micromamba'" >> ~/.bashrc \
&& echo "export PYTHONPATH=$PYTHONPATH:/home/rmguser/Code/ARC" >> ~/.bashrc \
&& echo "export PATH=$PATH:/home/rmguser/Code/ARC" >> ~/.bashrc

# Installing ARC
# Change directory to Code
Expand Down

0 comments on commit ca95070

Please sign in to comment.