File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,14 @@ FROM alpine:3.15
22
33ENV TERRAFORM_VERSION=1.1.4
44ENV COLLECTION_VERSION=v2.4.1
5+ ENV MONITORS_VERSION=be74295483f766f2fc6dd916b429b372a5655bd3
56ARG TARGETPLATFORM
67
78RUN apk add --no-cache \
89 bash \
910 curl \
1011 jq \
12+ git \
1113 && apk upgrade \
1214 && if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then TERRAFORM_PLATFORM="linux_amd64" ; fi; \
1315 if [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then TERRAFORM_PLATFORM="linux_arm" ; fi; \
@@ -21,14 +23,21 @@ RUN apk add --no-cache \
2123 && delgroup ping \
2224 && addgroup -g 999 setup \
2325 && adduser -u 999 -D -G setup setup \
24- && mkdir /terraform /scripts \
25- && chown -R setup:setup /terraform /scripts
26+ && mkdir /terraform /scripts /monitors \
27+ && chown -R setup:setup /terraform /scripts /monitors
2628
2729USER setup
2830RUN cd /terraform/ \
2931 && curl -O https://raw.githubusercontent.com/SumoLogic/sumologic-kubernetes-collection/${COLLECTION_VERSION}/deploy/helm/sumologic/conf/setup/main.tf \
3032 && terraform init \
3133 && rm main.tf
34+ RUN cd /monitors/ \
35+ && git clone https://github.com/SumoLogic/terraform-sumologic-sumo-logic-monitor.git \
36+ && cd terraform-sumologic-sumo-logic-monitor \
37+ && git checkout ${MONITORS_VERSION} \
38+ && cd .. \
39+ && cp terraform-sumologic-sumo-logic-monitor/monitor_packages/kubernetes/* . \
40+ && rm -rf terraform-sumologic-sumo-logic-monitor
3241
3342ARG BUILD_TAG=latest
3443ENV TAG=$BUILD_TAG
You can’t perform that action at this time.
0 commit comments