Skip to content

Commit

Permalink
added docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
denis256 committed Aug 19, 2024
1 parent 7a4a1d4 commit bdcd841
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
6 changes: 4 additions & 2 deletions example/client-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM gruntwork/terragrunt:0.2.0

ARG VERSION=v0.0.3-rc2024081902
ARG PLATFORM=linux_amd64
ENV LISTEN_ADDRESS=0.0.0.0:50051

RUN apt-get update && apt-get install -y wget

RUN mise use --global -y [email protected]
RUN ln -s /root/.local/share/mise/installs/opentofu/1.7.0/bin/tofu /bin/tofu
RUN mkdir /app
ADD server/terragrunt-engine-server /app/terragrunt-engine-server

RUN wget https://github.com/gruntwork-io/terragrunt-engine-go/releases/download/${VERSION}/terragrunt-iac-engine-server_${PLATFORM} -O /app/terragrunt-engine-server
RUN chmod +x /app/terragrunt-engine-server
ENTRYPOINT ["/app/terragrunt-engine-server"]
14 changes: 14 additions & 0 deletions example/client-server/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

version: '3'
services:
terragrunt-engine-server:
build:
context: .
dockerfile: Dockerfile
environment:
TOKEN: secret-token
volumes:
# Update path to allow tofu access from container to working directory
- $PWD:$PWD
ports:
- "0.0.0.0:50051:50051"

0 comments on commit bdcd841

Please sign in to comment.