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

feat: add pyspark #714

Open
wants to merge 14 commits into
base: master-2.0
Choose a base branch
from
1 change: 1 addition & 0 deletions docker-bits/6_jupyterlab.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ RUN pip install \
'plotly' \
'ipywidgets' \
'markupsafe' \
'pyspark' \
'ipympl' \
'pexpect==4.9.0' \
'jupyter-resource-usage' \
Expand Down
11 changes: 7 additions & 4 deletions docker-bits/6_rstudio.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ RUN mkdir -p /etc/rstudio && \

ENV PATH=$PATH:/usr/lib/rstudio-server/bin

ENV SPARK_HOME="/opt/conda/lib/python3.11/site-packages/pyspark"

# Install some default R packages
RUN mamba install --quiet --yes \
'r-arrow' \
Expand All @@ -24,17 +26,18 @@ RUN mamba install --quiet --yes \
'r-renv' \
'r-rodbc' \
'r-sf' \
'r-sparklyr' \
'r-tidyverse' \
&& \
clean-layer.sh && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

RUN python3 -m pip install \
'jupyter-rsession-proxy==2.2.0' \
'jupyter-server-proxy==4.2.0' && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
'jupyter-rsession-proxy==2.2.0' \
'jupyter-server-proxy==4.2.0' && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

# If using the docker bit in other Dockerfiles, this must get written over in a later layer
ENV DEFAULT_JUPYTER_URL="/rstudio"
Expand Down
12 changes: 8 additions & 4 deletions output/jupyterlab-cpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ RUN mkdir -p /etc/rstudio && \

ENV PATH=$PATH:/usr/lib/rstudio-server/bin

ENV SPARK_HOME="/opt/conda/lib/python3.11/site-packages/pyspark"

# Install some default R packages
RUN mamba install --quiet --yes \
'r-arrow' \
Expand All @@ -255,17 +257,18 @@ RUN mamba install --quiet --yes \
'r-renv' \
'r-rodbc' \
'r-sf' \
'r-sparklyr' \
'r-tidyverse' \
&& \
clean-layer.sh && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

RUN python3 -m pip install \
'jupyter-rsession-proxy==2.2.0' \
'jupyter-server-proxy==4.2.0' && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
'jupyter-rsession-proxy==2.2.0' \
'jupyter-server-proxy==4.2.0' && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

# If using the docker bit in other Dockerfiles, this must get written over in a later layer
ENV DEFAULT_JUPYTER_URL="/rstudio"
Expand Down Expand Up @@ -342,6 +345,7 @@ RUN pip install \
'plotly' \
'ipywidgets' \
'markupsafe' \
'pyspark' \
'ipympl' \
'pexpect==4.9.0' \
'jupyter-resource-usage' \
Expand Down
12 changes: 8 additions & 4 deletions output/jupyterlab-pytorch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ RUN mkdir -p /etc/rstudio && \

ENV PATH=$PATH:/usr/lib/rstudio-server/bin

ENV SPARK_HOME="/opt/conda/lib/python3.11/site-packages/pyspark"

# Install some default R packages
RUN mamba install --quiet --yes \
'r-arrow' \
Expand All @@ -277,17 +279,18 @@ RUN mamba install --quiet --yes \
'r-renv' \
'r-rodbc' \
'r-sf' \
'r-sparklyr' \
'r-tidyverse' \
&& \
clean-layer.sh && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

RUN python3 -m pip install \
'jupyter-rsession-proxy==2.2.0' \
'jupyter-server-proxy==4.2.0' && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
'jupyter-rsession-proxy==2.2.0' \
'jupyter-server-proxy==4.2.0' && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

# If using the docker bit in other Dockerfiles, this must get written over in a later layer
ENV DEFAULT_JUPYTER_URL="/rstudio"
Expand Down Expand Up @@ -364,6 +367,7 @@ RUN pip install \
'plotly' \
'ipywidgets' \
'markupsafe' \
'pyspark' \
'ipympl' \
'pexpect==4.9.0' \
'jupyter-resource-usage' \
Expand Down
12 changes: 8 additions & 4 deletions output/jupyterlab-tensorflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ RUN mkdir -p /etc/rstudio && \

ENV PATH=$PATH:/usr/lib/rstudio-server/bin

ENV SPARK_HOME="/opt/conda/lib/python3.11/site-packages/pyspark"

# Install some default R packages
RUN mamba install --quiet --yes \
'r-arrow' \
Expand All @@ -384,17 +386,18 @@ RUN mamba install --quiet --yes \
'r-renv' \
'r-rodbc' \
'r-sf' \
'r-sparklyr' \
'r-tidyverse' \
&& \
clean-layer.sh && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

RUN python3 -m pip install \
'jupyter-rsession-proxy==2.2.0' \
'jupyter-server-proxy==4.2.0' && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
'jupyter-rsession-proxy==2.2.0' \
'jupyter-server-proxy==4.2.0' && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

# If using the docker bit in other Dockerfiles, this must get written over in a later layer
ENV DEFAULT_JUPYTER_URL="/rstudio"
Expand Down Expand Up @@ -471,6 +474,7 @@ RUN pip install \
'plotly' \
'ipywidgets' \
'markupsafe' \
'pyspark' \
'ipympl' \
'pexpect==4.9.0' \
'jupyter-resource-usage' \
Expand Down
11 changes: 7 additions & 4 deletions output/rstudio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ RUN mkdir -p /etc/rstudio && \

ENV PATH=$PATH:/usr/lib/rstudio-server/bin

ENV SPARK_HOME="/opt/conda/lib/python3.11/site-packages/pyspark"

# Install some default R packages
RUN mamba install --quiet --yes \
'r-arrow' \
Expand All @@ -255,17 +257,18 @@ RUN mamba install --quiet --yes \
'r-renv' \
'r-rodbc' \
'r-sf' \
'r-sparklyr' \
'r-tidyverse' \
&& \
clean-layer.sh && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

RUN python3 -m pip install \
'jupyter-rsession-proxy==2.2.0' \
'jupyter-server-proxy==4.2.0' && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
'jupyter-rsession-proxy==2.2.0' \
'jupyter-server-proxy==4.2.0' && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

# If using the docker bit in other Dockerfiles, this must get written over in a later layer
ENV DEFAULT_JUPYTER_URL="/rstudio"
Expand Down
12 changes: 8 additions & 4 deletions output/sas/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ RUN pip install \
'plotly' \
'ipywidgets' \
'markupsafe' \
'pyspark' \
'ipympl' \
'pexpect==4.9.0' \
'jupyter-resource-usage' \
Expand Down Expand Up @@ -402,6 +403,8 @@ RUN mkdir -p /etc/rstudio && \

ENV PATH=$PATH:/usr/lib/rstudio-server/bin

ENV SPARK_HOME="/opt/conda/lib/python3.11/site-packages/pyspark"

# Install some default R packages
RUN mamba install --quiet --yes \
'r-arrow' \
Expand All @@ -414,17 +417,18 @@ RUN mamba install --quiet --yes \
'r-renv' \
'r-rodbc' \
'r-sf' \
'r-sparklyr' \
'r-tidyverse' \
&& \
clean-layer.sh && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

RUN python3 -m pip install \
'jupyter-rsession-proxy==2.2.0' \
'jupyter-server-proxy==4.2.0' && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
'jupyter-rsession-proxy==2.2.0' \
'jupyter-server-proxy==4.2.0' && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

# If using the docker bit in other Dockerfiles, this must get written over in a later layer
ENV DEFAULT_JUPYTER_URL="/rstudio"
Expand Down
Loading