Skip to content

Commit

Permalink
install from release page
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman committed Jun 14, 2024
1 parent 4d86e85 commit 5801ca1
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Use a base image with platform specification
FROM --platform=$BUILDPLATFORM debian:bookworm-slim

# Define the arguments for Atmos version and platforms
ARG TARGETPLATFORM
ARG BUILDPLATFORM

# Set the Atmos version (without the v prefix)
ARG ATMOS_VERSION
ARG OS=linux
ARG ARCH=amd64

SHELL ["/bin/bash", "-c"]
# Update the package list and install curl and git
RUN apt-get update && apt-get install -y curl git

# Install the Cloud Posse Debian repository
Expand All @@ -25,14 +25,11 @@ RUN apt-get -y install terraform kubectl helmfile helm
# Install the helm-diff plugin required by Helmfile
RUN helm plugin install https://github.com/databus23/helm-diff

# Install Atmos
# Install Atmos from the GitHub Release
RUN case ${TARGETPLATFORM} in \
"linux/amd64") \
OS=linux; ARCH=amd64 ;; \
"linux/arm64") \
OS=linux; ARCH=arm64 ;; \
*) \
echo "Unsupported platform: ${TARGETPLATFORM}" && exit 1 ;; \
"linux/amd64") OS=linux; ARCH=amd64 ;; \
"linux/arm64") OS=linux; ARCH=arm64 ;; \
*) echo "Unsupported platform: ${TARGETPLATFORM}" && exit 1 ;; \
esac && \
ATMOS_VERSION=${ATMOS_VERSION#v} && \
curl -1sSLf "https://github.com/cloudposse/atmos/releases/download/v${ATMOS_VERSION}/atmos_${ATMOS_VERSION}_${OS}_${ARCH}" -o /usr/local/bin/atmos && \
Expand Down

0 comments on commit 5801ca1

Please sign in to comment.