Skip to content

Commit

Permalink
chore: use latest providers files for chart and monitors (#112)
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <[email protected]>
  • Loading branch information
sumo-drosiek authored Jul 1, 2024
1 parent cf9618b commit 1f559be
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,38 @@ FROM hashicorp/terraform:1.9.0 as terraform

FROM alpine:3.20.1

ENV COLLECTION_VERSION=v4.6.1
ENV MONITORS_VERSION=v1.2.4
ENV COLLECTION_VERSION=5577707ce153198a2dacbdfc6baa8db349cac944
ENV MONITORS_VERSION=v1.2.5
ARG TARGETPLATFORM

RUN apk add --no-cache \
bash \
curl \
jq \
git \
&& apk upgrade \
&& addgroup -g 1000 setup \
&& adduser -u 1000 -D -G setup setup \
&& mkdir /terraform /scripts /monitors \
&& chown -R setup:setup /terraform /scripts /monitors
&& apk upgrade \
&& addgroup -g 1000 setup \
&& adduser -u 1000 -D -G setup setup \
&& mkdir /terraform /scripts /monitors \
&& chown -R setup:setup /terraform /scripts /monitors

COPY --from=terraform /bin/terraform /usr/local/bin/terraform

USER setup
RUN cd /terraform/ \
&& curl -O https://raw.githubusercontent.com/SumoLogic/sumologic-kubernetes-collection/${COLLECTION_VERSION}/deploy/helm/sumologic/conf/setup/main.tf \
&& terraform init \
&& rm main.tf
&& curl -O https://raw.githubusercontent.com/SumoLogic/sumologic-kubernetes-collection/${COLLECTION_VERSION}/deploy/helm/sumologic/conf/setup/main.tf \
&& terraform init \
&& rm main.tf
RUN cd /monitors/ \
&& git clone https://github.com/SumoLogic/terraform-sumologic-sumo-logic-monitor.git \
&& cd terraform-sumologic-sumo-logic-monitor \
&& git checkout ${MONITORS_VERSION} \
&& cd .. \
&& cp terraform-sumologic-sumo-logic-monitor/monitor_packages/kubernetes/* . \
&& terraform init -input=false || terraform init -input=false -upgrade \
&& rm -rf terraform-sumologic-sumo-logic-monitor
&& git clone https://github.com/SumoLogic/terraform-sumologic-sumo-logic-monitor.git \
&& cd terraform-sumologic-sumo-logic-monitor \
&& git checkout ${MONITORS_VERSION} \
&& cd .. \
&& cp terraform-sumologic-sumo-logic-monitor/monitor_packages/kubernetes/* . \
&& terraform init -input=false || terraform init -input=false -upgrade \
&& rm -rf terraform-sumologic-sumo-logic-monitor

ARG BUILD_TAG=latest
ENV TAG=$BUILD_TAG
ARG BUILD_TAG=latest
ENV TAG=$BUILD_TAG

WORKDIR /terraform/

0 comments on commit 1f559be

Please sign in to comment.