File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -331,17 +331,17 @@ Resources:
331331 TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")
332332 EC2_INSTANCE_ID=$(curl -H "X-aws-ec2-metadata-token: $TOKEN" -s http://169.254.169.254/latest/meta-data/instance-id)
333333 SYNAPSE_TOKEN_AWS_SSM_PARAMETER_NAME=/${SERVICE_CATALOG_PREFIX}/${EC2_INSTANCE_ID}/${SSM_PARAMETER_SUFFIX}
334- # For idempotency this command tries to restart an existing container and only creates one if that fails.
334+ # (1) For idempotency this command tries to restart an existing container and only creates one if that fails.
335+ # (2) from
336+ # https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#docker-options
337+ # to give user 'sudo' ability inside the notebook, add the env var
338+ # 'GRANT_SUDO=yes' and run the container as 'root'
335339 docker start ${NOTEBOOK_CONTAINER_NAME} || \
336340 docker run -d --name ${NOTEBOOK_CONTAINER_NAME} \
337341 --restart unless-stopped \
338342 -e DOCKER_STACKS_JUPYTER_CMD=notebook \
339343 -e SYNAPSE_TOKEN_AWS_SSM_PARAMETER_NAME=${SYNAPSE_TOKEN_AWS_SSM_PARAMETER_NAME} \
340344 -e AWS_DEFAULT_REGION=${AWS_REGION} \
341- # from
342- # https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#docker-options
343- # to give user 'sudo' ability inside the notebook, add the env var
344- # 'GRANT_SUDO=yes' and run the container as 'root'
345345 -e GRANT_SUDO=yes --user root \
346346 -v ${WORK_VOLUME_NAME}:${JUPYTER_WORK_DIR} \
347347 --network ${NETWORK_NAME} ${DOCKER_IMAGE} \
You can’t perform that action at this time.
0 commit comments