Skip to content

Commit

Permalink
don't rely on HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke committed Apr 11, 2024
1 parent 0a84e22 commit 4e4a167
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: |
echo "rlmSERVER=${{ secrets.RLMSERVER }}" >> "$GITHUB_ENV"
echo "rlmPASSWD=${{ secrets.RLMPASSWORD}}" >> "$GITHUB_ENV"
. ${HOME}/.bashrc
. /opt/etc/bashrc
conda activate parastell_env
sed -e "s/@SERVER@/${rlmSERVER}/" -e "s/@PASSWORD@/${rlmPASSWD}/" /opt/Coreform-Cubit-2023.11/bin/licenses/rlmcloud.in > /opt/Coreform-Cubit-2023.11/bin/licenses/rlmcloud.lic
cd tests
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,13 @@ RUN dpkg -i cubit.deb
ENV PYTHONPATH=/opt/Coreform-Cubit-2023.11/bin/
COPY ./rlmcloud.in /opt/Coreform-Cubit-2023.11/bin/licenses/rlmcloud.in

RUN mkdir -p /github/home
ENV HOME /github/home
RUN cp /root/.bashrc /github/home/.bashrc
RUN mkdir -p /opt/etc
RUN cp /root/.bashrc /opt/etc/bashrc

# parastell env
COPY ./environment.yml /environment.yml
RUN conda env create -f environment.yml
RUN echo "source activate parastell_env" >> ~/.bashrc
RUN echo "source activate parastell_env" >> /opt/etc/bashrc

WORKDIR /opt

Expand Down

0 comments on commit 4e4a167

Please sign in to comment.