Skip to content

Commit fede1fd

Browse files
authored
add init_conda.sh update to py-rocket-base
add init_conda.sh update to py-rocket-base
2 parents 656ef53 + 9ae2bb3 commit fede1fd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ ENV REPO_DIR="/srv/repo" \
2020
ARG R_VERSION_PULL="4.4.2"
2121
ENV LANG=en_US.UTF-8
2222
ENV LC_ALL=en_US.UTF-8
23+
24+
# Fix init_conda.sh so that it only runs if we are in Jupyter Lab and not RStudio
25+
RUN echo 'if [[ ! -v RSTUDIO || ! -v R_HOME ]]; then \
26+
. ${CONDA_DIR}/etc/profile.d/conda.sh; \
27+
conda activate ${CONDA_ENV}; \
28+
fi' > /etc/profile.d/init_conda.sh
2329

2430
# Add NB_USER to staff group (required for rocker script)
2531
# Ensure the staff group exists first

0 commit comments

Comments
 (0)