Skip to content

Commit

Permalink
Merge pull request #65 from kbase/dev_plotly_extension
Browse files Browse the repository at this point in the history
plotly extension + user lib installation bug
  • Loading branch information
Tianhao-Gu authored Aug 7, 2024
2 parents 883a2b4 + cd2e6ab commit 10c0c7d
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 405 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,21 @@ RUN chown -R spark_user:spark /opt/bitnami
RUN mkdir -p /opt/yarn/conf && chown -R spark_user:spark /opt/yarn
ENV YARN_CONF_DIR=/opt/yarn/conf

# Use the spark user for pipenv installation
USER spark_user
# Set home directory for the spark user so that pipenv can install packages properly with spark user permissions
ENV HOME=/opt/bitnami

# install pipenv
RUN pip3 install pipenv

# install python dependencies
COPY Pipfile* ./
RUN pipenv sync --system

# Switch back to root to install Jupyter and other setup
USER root

# Set up Jupyter directories
ENV JUPYTER_CONFIG_DIR=/.jupyter
ENV JUPYTER_RUNTIME_DIR=/.jupyter/runtime
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ urllib3 = "==2.2.2"
jupyterlab-git = "==0.50.1"
jupyter-collaboration = "==2.1.2"
cdm-jupyterlab-brand-extension = {file = "https://github.com/kbaseincubator/cdm_jupyterlab_brand_extension/raw/main/dist/cdm_jupyterlab_brand_extension-0.1.0-py3-none-any.whl"}
matplotlib = "==3.9.0" # on the Notebook, the first installation attempt may fail, but the second attempt will succeed.
plotly = "==5.23.0"

[dev-packages]
pytest = "==8.3.2"
Expand Down
Loading

0 comments on commit 10c0c7d

Please sign in to comment.