Skip to content

Commit

Permalink
using /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
shashitnak committed May 20, 2024
1 parent 3d257fa commit 172df29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
FROM debian:latest

COPY entrypoint.sh /entrypoint.sh
COPY tailcall.tf /github/workspace/tailcall.tf
COPY tailcall.tf /tmp/tailcall.tf

RUN export TF_CONTENT=$(cat /tmp/tailcall.tf)

ENV TF_CONTENT=$TF_CONTENT

RUN apt-get update \
&& apt-get install -y wget git \
Expand Down
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ echo "aws-access-key-id: $AWS_ACCESS_KEY_ID"
echo "aws-secret-access-key: $AWS_SECRET_ACCESS_KEY"
echo "config: $CONFIG"
echo "LS: $(ls)"
echo "TF_CONTENT: $(TF_CONTENT)"
cd /tmp
terraform init
TF_VAR_AWS_REGION=$AWS_REGION terraform apply

0 comments on commit 172df29

Please sign in to comment.