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

add maap-dps packages to environment.yaml #7

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@ USER root
COPY --chown=${NB_USER}:${NB_USER} image-tests /srv/repo/image-tests
COPY --chown=${NB_USER}:${NB_USER} scripts /srv/repo/scripts

ENV CONDA_PREFIX=/srv/conda/envs/notebook
ADD default_pip_packages.sh $CONDA_PREFIX/etc/conda/activate.d/default_pip_packages.sh
ADD custom_pip_packages.sh $CONDA_PREFIX/etc/conda/activate.d/custom_pip_packages.sh
RUN chmod +x $CONDA_PREFIX/etc/conda/activate.d/custom_pip_packages.sh
RUN chmod +x $CONDA_PREFIX/etc/conda/activate.d/default_pip_packages.sh

USER ${NB_USER}

ADD environment.yml environment.yml

RUN mamba env update --prefix /srv/conda/envs/notebook --file environment.yml



4 changes: 4 additions & 0 deletions custom_pip_packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
pip install maap-dps-jupyter-extension==0.7.2 --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/
pip install maap-jupyter-server-extension==2.0.9 --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/
jupyter server extension enable maap_jupyter_server_extension
4 changes: 4 additions & 0 deletions default_pip_packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
pip install git+https://github.com/MAAP-Project/stac_ipyleaflet.git@0.3.3#egg-info=stac_ipyleaflet
pip install git+https://github.com/MAAP-Project/maap-py.git@feature/maappy-gets-username#egg=maap-py
pip install maap-algorithms-jupyter-extension==0.3.4
2 changes: 0 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ channels:
dependencies:
- ipykernel
- pip
- pip:
- git+https://github.com/MAAP-Project/stac_ipyleaflet.git@0.3.3#egg-info=stac_ipyleaflet
variables:
TITILER_STAC_ENDPOINT: 'https://staging-stac.delta-backend.com'
TITILER_ENDPOINT: 'https://staging-raster.delta-backend.com'
Expand Down