Skip to content

Commit

Permalink
Merge pull request #224 from nmfs-opensci/eeholmes-patch-1
Browse files Browse the repository at this point in the history
work on the terminal in rstudio
  • Loading branch information
eeholmes authored Feb 19, 2025
2 parents dabe9d4 + c64f011 commit 8f79335
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ RUN /pyrocket_scripts/fix-home-permissions.sh
USER ${NB_USER}
RUN chmod +x ${REPO_DIR}/start \
&& cp ${REPO_DIR}/start /srv/start

# Create a symlink for python to python3 for all users
RUN ln -s /usr/bin/python3 /usr/local/bin/python

# Revert to default user and home as pwd
USER ${NB_USER}
Expand Down
8 changes: 0 additions & 8 deletions scripts/install-rocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,5 @@ if command -v tlmgr &> /dev/null; then
tlmgr install pdfcol tcolorbox eurosym upquote adjustbox titling enumitem ulem soul rsfs
fi

# Make sure that the default terminal opened in RStudio (which is a login bash) sets the PATH
current_path="$PATH"
echo 'if [[ ! -v RSTUDIO || ! -v R_HOME ]]; then \
# Set PATH to the captured current_path value \
export PATH="'$current_path'"; \
echo "Setting PATH to captured value: '$current_path'"; \
fi' > /etc/profile.d/rstudio_set_path.sh

sudo chown -R jovyan:jovyan /etc/rstudio
sudo chmod -R u+rwX /etc/rstudio

0 comments on commit 8f79335

Please sign in to comment.