Skip to content
Merged
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
4 changes: 3 additions & 1 deletion appendix
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ RUN cp /srv/repo/custom_jupyter_server_config.json ${NB_PYTHON_PREFIX}/etc/jupyt

# Mothership GCP service account key — workshop-scoped, revoked after.
# required=false so PR/test builds (which never receive this secret) don't fail.
RUN --mount=type=secret,id=gcp_key,required=false \
# We use uid=1000 because this step is run as jovyan, and BuildKit mounts
# secrets as owned by root by default, so this lets jovyan read them.
RUN --mount=type=secret,id=gcp_key,required=false,uid=1000 \
if [ -s /run/secrets/gcp_key ]; then \
mkdir -p ${NB_PYTHON_PREFIX}/etc/gcp && \
cp /run/secrets/gcp_key ${NB_PYTHON_PREFIX}/etc/gcp/mothership-key.json && \
Expand Down
Loading