Skip to content

Commit

Permalink
feat: upgrade plenty of sexy packages (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmontanola authored May 31, 2023
1 parent 0502ed4 commit 288f100
Showing 1 changed file with 8 additions and 30 deletions.
38 changes: 8 additions & 30 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,43 +1,21 @@
ARG ALPINE_VERSION=3.16
FROM python:3.10.5-alpine${ALPINE_VERSION} as builder
ARG ALPINE_VERSION=3.18

ARG AWS_CLI_VERSION=2.7.20
RUN apk add --no-cache git unzip groff build-base libffi-dev cmake
RUN git clone --single-branch --depth 1 -b ${AWS_CLI_VERSION} https://github.com/aws/aws-cli.git

WORKDIR aws-cli
RUN sed -i'' 's/PyInstaller.*/PyInstaller==5.2/g' requirements-build.txt
RUN python -m venv venv
RUN . venv/bin/activate
RUN scripts/installers/make-exe
RUN unzip -q dist/awscli-exe.zip
RUN aws/install --bin-dir /aws-cli-bin
RUN /aws-cli-bin/aws --version

# reduce image size: remove autocomplete and examples
RUN rm -rf /usr/local/aws-cli/v2/current/dist/aws_completer /usr/local/aws-cli/v2/current/dist/awscli/data/ac.index /usr/local/aws-cli/v2/current/dist/awscli/examples
RUN find /usr/local/aws-cli/v2/current/dist/awscli/botocore/data -name examples-1.json -delete

# build the final image
FROM alpine:${ALPINE_VERSION}


FROM ghcr.io/runatlantis/atlantis:v0.22.3
FROM ghcr.io/runatlantis/atlantis:v0.24.2

LABEL org.opencontainers.image.source=https://github.com/clicampo/docker-atlantis-terragrunt

ENV TERRAGRUNT_VERSION=v0.43.2 \
ENV TERRAGRUNT_VERSION=v0.45.18 \
VAULT_VERSION=1.10.1 \
TERRAGRUNT_ATLANTIS_CONFIG_VERSION=1.16.0 \
TERRAFORM_VERSION=1.3.8 \
DEFAULT_TERRAFORM_VERSION=1.3.8
TERRAFORM_VERSION=1.4.6 \
DEFAULT_TERRAFORM_VERSION=1.4.6 \
AWS_CLI_VERSION=2.11.23-r0

# AWS CLI v2
COPY --from=builder /usr/local/aws-cli/ /usr/local/aws-cli/
COPY --from=builder /aws-cli-bin/ /usr/local/bin/

RUN apk add --no-cache aws-cli==${AWS_CLI_VERSION}
SHELL ["/bin/bash", "-o", "pipefail", "-c"]


RUN curl -Ls https://github.com/gruntwork-io/terragrunt/releases/download/${TERRAGRUNT_VERSION}/terragrunt_linux_amd64 --output /usr/local/bin/terragrunt \
&& chmod +x /usr/local/bin/terragrunt \
&& curl -LOs https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip \
Expand Down

0 comments on commit 288f100

Please sign in to comment.