Skip to content

Commit

Permalink
Fixed instance cert folder permission
Browse files Browse the repository at this point in the history
  • Loading branch information
samadwar committed Sep 22, 2022
1 parent 8a2c5a8 commit ae86714
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/sagemaker_studio_docker_cli/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def generate_bootstrap_script(home, efs_ip_address, port, user_uid, gpu_option,
{efs_ip_address}:/{user_uid} \
{home}
CERTS={home}/.sagemaker_studio_docker_cli/${{instance_type}}_${{instance_id}}/certs
CERTS={home}/.sagemaker_studio_docker_cli/${{instance_type}}_${{instance_id}}
mkdir -p $CERTS
mkdir -p $CERTS/certs
_tls_generate_certs "$CERTS"
_tls_generate_certs "$CERTS/certs"
chown -R {user_uid}:1001 $CERTS
Expand All @@ -73,10 +73,10 @@ def generate_bootstrap_script(home, efs_ip_address, port, user_uid, gpu_option,
-e DOCKER_TLS_CERTDIR="/certs" {docker_image_name} \
dockerd --tlsverify --tlscacert=/certs/ca/cert.pem --tlscert=/certs/server/cert.pem --tlskey=/certs/server/key.pem -H=0.0.0.0:2376
else
CERTS=/root/.sagemaker_studio_docker_cli/${{instance_type}}_${{instance_id}}/certs
mkdir -p $CERTS
CERTS=/root/.sagemaker_studio_docker_cli/${{instance_type}}_${{instance_id}}
mkdir -p $CERTS/certs
_tls_generate_certs "$CERTS"
_tls_generate_certs "$CERTS/certs"
chown -R {user_uid}:1001 $CERTS
Expand Down

0 comments on commit ae86714

Please sign in to comment.