-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
33 lines (24 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ghcr.io/runatlantis/atlantis:v0.31.0
ARG terragrunt_version=v0.69.13
ARG terragrunt_atlantis_config=1.19.0
# Set bash settings
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
USER root
# Update all the things
RUN apk upgrade
# Terragrunt related configuration
COPY config/repos.yaml /usr/local/etc/repos.yaml
# Install Terragrunt
RUN curl -L -s --output /usr/local/bin/terragrunt "https://github.com/gruntwork-io/terragrunt/releases/download/${terragrunt_version}/terragrunt_linux_amd64" &&\
chmod +x /usr/local/bin/terragrunt
# Install jq, useful for Terraform external datasource
RUN apk add jq --no-cache
# Terragrunt Atlantis Config install
RUN \
curl -s -L --output /usr/local/bin/terragrunt-atlantis-config "https://github.com/transcend-io/terragrunt-atlantis-config/releases/download/v${terragrunt_atlantis_config}/terragrunt-atlantis-config_${terragrunt_atlantis_config}_linux_amd64" &&\
chmod +x /usr/local/bin/terragrunt-atlantis-config
# Clean up package cache
RUN rm -rf /var/cache/apk/*
# Switch back to atlantis user
USER atlantis
CMD ["server"]