From 055471ac44c25aabef3a7a35ae9fd72e3be0f5a7 Mon Sep 17 00:00:00 2001 From: Ruge Li Date: Mon, 29 Jul 2024 15:56:48 -0700 Subject: [PATCH] access aws s3 with saved cred --- Dockerfile | 6 ------ configure-aws.sh | 4 ---- docker-entrypoint.sh | 3 --- 3 files changed, 13 deletions(-) delete mode 100644 configure-aws.sh diff --git a/Dockerfile b/Dockerfile index fe109d33..7e8cd6b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,10 +12,4 @@ RUN apt-get update && apt-get install -y awscli COPY docker-entrypoint.sh /usr/local/bin/ RUN ["chmod", "+x", "/usr/local/bin/docker-entrypoint.sh"] - - -# Copy and set permissions for the AWS configure script -COPY configure-aws.sh /usr/local/bin/ -RUN ["chmod", "+x", "/usr/local/bin/configure-aws.sh"] - ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] \ No newline at end of file diff --git a/configure-aws.sh b/configure-aws.sh deleted file mode 100644 index c6644d74..00000000 --- a/configure-aws.sh +++ /dev/null @@ -1,4 +0,0 @@ -# Configure AWS CLI -aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID -aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY -aws configure set default.region $AWS_DEFAULT_REGION \ No newline at end of file diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 7e7f03ac..305d0607 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -10,9 +10,6 @@ # exit # fi -# Configure AWS CLI -/usr/local/bin/configure-aws.sh - cd /cellpack # pack -r ${recipe} -c ${config} pack -r examples/recipes/v2/one_sphere.json -c examples/packing-configs/run.json \ No newline at end of file