From 4ea74c4bbceecbdf0ed19c0f73c01357a8351f8a Mon Sep 17 00:00:00 2001 From: Shashi Kant Date: Thu, 23 May 2024 23:07:55 +0000 Subject: [PATCH] adding debug logs --- Dockerfile | 2 +- entrypoint.sh | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3a25584..3a9de4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,6 @@ COPY aws/tailcall.tf /aws/tailcall.tf COPY fly/Dockerfile /fly/Dockerfile RUN apk upgrade --no-cache && apk update --no-cache -RUN apk add --no-cache curl jq go +RUN apk add --no-cache curl jq ENTRYPOINT /bin/sh /entrypoint.sh \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index e793be3..50df492 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -20,12 +20,10 @@ cp $TAILCALL_CONFIG /fly/config.graphql setup_terraform() { TERRAFORM_VERSION=$(get_latest_version hashicorp terraform) - wget -O /tmp/terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip - unzip /tmp/terraform.zip -d /tmp && rm /tmp/terraform.zip - ls /tmp - mv /tmp/*/terraform /usr/local/bin/terraform - ls /aws - chmod +x /aws/terraform + echo $TERRAFORM_VERSION + wget -O terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip + unzip terraform.zip && rm terraform.zip + mv ./*/terraform /usr/local/bin/terraform } setup_flyctl() {