Skip to content

RW-12661 Support qiime #4831

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

Draft
wants to merge 11 commits into
base: develop
Choose a base branch
from
Draft
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
11 changes: 11 additions & 0 deletions http/src/main/resources/init-resources/gce-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,17 @@ if [ ! -z "$JUPYTER_DOCKER_IMAGE" ] ; then
# This is to make it so that older images will still work after we change notebooks location to home dir
docker exec ${JUPYTER_SERVER_NAME} sed -i '/^# to mount there as it effectively deletes existing files on the image/,+5d' ${JUPYTER_HOME}/jupyter_notebook_config.py

# custom code only for AoU image. We can remove this after AoU maintenance mode is over in 2026.
if [[ $JUPYTER_DOCKER_IMAGE == *terra-jupyter-aou* ]]; then
# retry 3 docker exec ${JUPYTER_SERVER_NAME} pip install --upgrade jupyter-server
# retry 3 docker exec -u root -e PIP_USER=false ${JUPYTER_SERVER_NAME} sudo -E -u jupyter jupyter serverextension enable --py qiime2
# retry 3 docker exec -u root -e PIP_USER=false ${JUPYTER_SERVER_NAME} chown -R jupyter:users $JUPYTER_USER_HOME/.config
retry 3 docker exec -u root ${JUPYTER_SERVER_NAME} chown -R jupyter:users $JUPYTER_USER_HOME/
retry 3 docker exec ${JUPYTER_SERVER_NAME} /opt/conda/envs/qiime2-2024.10/bin/pip install --upgrade jupyter-server
retry 3 docker exec -u root ${JUPYTER_SERVER_NAME} chown -R jupyter:users /opt/conda/envs/qiime2-2024.10/etc
retry 3 docker exec ${JUPYTER_SERVER_NAME} /opt/conda/envs/qiime2-2024.10/bin/jupyter server extension enable --py qiime2 --sys-prefix
fi

log 'Starting Jupyter Notebook...'
retry 3 docker exec -d $JUPYTER_SERVER_NAME /bin/bash -c "${JUPYTER_SCRIPTS}/run-jupyter.sh ${NOTEBOOKS_DIR}"

Expand Down
Loading