Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install homebrew #235

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions single-user/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN mamba install -y --quiet \
# resource usage info in GUI
jupyter-resource-usage \
&& conda clean --all


# Octave, install on a different environment
# Octave from conda won't build packages
Expand All @@ -53,12 +53,13 @@ RUN mamba install -y --quiet octave_kernel=0.32.0 \

# Rstudio
USER root

RUN apt-get update \
&& apt-get install -y gdebi-core \
&& wget -q https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2022.07.2-576-amd64.deb \
&& gdebi -n rstudio-server-2022.07.2-576-amd64.deb \
&& rm rstudio-server-2022.07.2-576-amd64.deb \
&& apt-get remove -y gdebi \
&& apt-get remove -y gdebi-core \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -92,4 +93,12 @@ RUN mamba create --name python3.7 -y --quiet -c conda-forge ipython python=3.7 i

RUN jupyter lab build

# homebrew
USER root

RUN echo 'jovyan ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers \
&& su jovyan /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

USER $NB_UID

RUN rmdir work