Skip to content

Commit

Permalink
git cloning in entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
shashitnak committed May 20, 2024
1 parent 9559001 commit 5d08b1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ RUN apt-get update \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
tee /etc/apt/sources.list.d/hashicorp.list \
&& apt update \
&& apt-get install -y terraform \
&& git clone https://github.com/tailcallhq/tailcall-on-aws.git \
&& terraform init

WORKDIR /tailcall-on-aws
&& apt-get install -y terraform

ENTRYPOINT ["/entrypoint.sh"]
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
echo "aws-access-key-id: $AWS_ACCESS_KEY_ID"
echo "aws-secret-access-key: $AWS_SECRET_ACCESS_KEY"
echo "config: $CONFIG"
echo "PWD: $(pwd)"
git clone https://github.com/tailcallhq/tailcall-on-aws.git
cd tailcall-on-aws
terraform init
echo "PWD: $(pwd)"

0 comments on commit 5d08b1a

Please sign in to comment.