Skip to content

Commit

Permalink
chore: fix bad venv setup (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
rokroskar authored Feb 1, 2023
1 parent 34d1b49 commit 7d6bbfe
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion R/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ RUN R -f /tmp/install.R

# install the python dependencies
COPY requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt --no-cache-dir
RUN pip3 install -r /tmp/requirements.txt --no-cache-dir && \
rm -rf ${HOME}/.renku/venv

COPY --from=builder ${HOME}/.renku/venv ${HOME}/.renku/venv
3 changes: 2 additions & 1 deletion bioc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ RUN R -f /tmp/install.R

# install the python dependencies
COPY requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt --no-cache-dir
RUN pip3 install -r /tmp/requirements.txt --no-cache-dir && \
rm -rf ${HOME}/.renku/venv

COPY --from=builder ${HOME}/.renku/venv ${HOME}/.renku/venv
3 changes: 2 additions & 1 deletion julia/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ RUN mamba env update -q -f /tmp/environment.yml && \
COPY Project.toml Manifest.toml /tmp/
RUN mkdir /tmp/julia-pkg && \
cp /tmp/Project.toml /tmp/Manifest.toml /tmp/julia-pkg/ && \
julia -e'using Pkg; Pkg.activate("/tmp/julia-pkg/"); Pkg.instantiate(); Pkg.precompile()'
julia -e'using Pkg; Pkg.activate("/tmp/julia-pkg/"); Pkg.instantiate(); Pkg.precompile()' && \
rm -rf ${HOME}/.renku/venv

COPY --from=builder ${HOME}/.renku/venv ${HOME}/.renku/venv
2 changes: 2 additions & 0 deletions minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ FROM ${RENKU_BASE_IMAGE}
# conda clean -y --all && \
# conda env export -n "root"

RUN rm -rf ${HOME}/.renku/venv

COPY --from=builder ${HOME}/.renku/venv ${HOME}/.renku/venv
3 changes: 2 additions & 1 deletion python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ COPY requirements.txt environment.yml /tmp/
RUN mamba env update -q -f /tmp/environment.yml && \
/opt/conda/bin/pip install -r /tmp/requirements.txt --no-cache-dir && \
mamba clean -y --all && \
mamba env export -n "root"
mamba env export -n "root" && \
rm -rf ${HOME}/.renku/venv

COPY --from=builder ${HOME}/.renku/venv ${HOME}/.renku/venv

0 comments on commit 7d6bbfe

Please sign in to comment.