From 02a39117768c1a817052bb27e91d7c50c9952a5e Mon Sep 17 00:00:00 2001 From: Joseph Weston <joseph@weston.cloud> Date: Thu, 3 Oct 2019 10:29:31 +0200 Subject: [PATCH] update Dockerfile to activate the revtex environment automatically --- .gitlab-ci.yml | 2 +- Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dc5f975..e6fc812 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,7 +41,7 @@ build-env:ubuntu: &build-docker make: stage: test script: - - source activate revtex-markdown-paper && make + - make artifacts: paths: - paper.pdf diff --git a/Dockerfile b/Dockerfile index 0f3a96c..eae8ae5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,8 @@ RUN chmod +x /usr/bin/tini RUN mkdir /environments COPY environment.yml /environments/ -RUN conda-env create -f /environments/environment.yml +RUN conda-env create -f /environments/environment.yml && \ + echo "conda activate revtex-markdown-paper" >> ~/.bashrc ENTRYPOINT [ "/usr/bin/tini", "--" ] CMD [ "/bin/bash" ] -- GitLab