Skip to content

Commit

Permalink
fix: ensure local/bin is in PATH (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
rokroskar authored Nov 2, 2020
1 parent a1121ee commit 158d97a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docker/py/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ RUN conda install gxx_linux-64 && \
# install renku-python
ENV RENKU_DISABLE_VERSION_CHECK 1

ENV PATH=$HOME/.local/bin:$PATH

RUN pipx install --pip-args="--no-cache" renku && \
pipx inject --pip-args="--no-cache" renku sentry-sdk && \
echo "export PATH=\"$PATH:/home/${NB_USER}/.local/bin\"" >> /home/${NB_USER}/.bashrc
pipx inject --pip-args="--no-cache" renku sentry-sdk

# configure git
COPY git-config.bashrc /home/$NB_USER/
Expand Down
5 changes: 3 additions & 2 deletions docker/r/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ ENV HOME /home/${NB_USER}
ENV SHELL bash
ENV CONDA_PATH /opt/conda

# prepend conda to PATH
ENV PATH ${CONDA_PATH}/bin:$PATH
# prepend conda and local/bin to PATH
ENV PATH ~/.local/bin:${CONDA_PATH}/bin:$PATH

# And set PATH for R! It doesn't read from the environment...
RUN echo "PATH=${PATH}" >> /usr/local/lib/R/etc/Renviron && \
echo "PATH=${PATH}" >> /etc/profile.d/set_path.sh
Expand Down

0 comments on commit 158d97a

Please sign in to comment.