-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dominik Rosiek <[email protected]>
- Loading branch information
Dominik Rosiek
committed
May 27, 2024
1 parent
80980dc
commit c4c9047
Showing
5 changed files
with
82 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM hashicorp/terraform:1.8.4 as terraform | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi:8.4 | ||
|
||
ENV COLLECTION_VERSION=v4.6.1 | ||
ENV MONITORS_VERSION=v1.2.4 | ||
ARG TARGETPLATFORM | ||
|
||
RUN dnf update -y \ | ||
&& dnf install -y \ | ||
bash \ | ||
curl \ | ||
jq \ | ||
git \ | ||
&& dnf clean all \ | ||
&& groupadd -g 1000 setup \ | ||
&& adduser -u 1000 -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 | ||
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 | ||
|
||
ARG BUILD_TAG=latest | ||
ENV TAG=$BUILD_TAG | ||
|
||
WORKDIR /terraform/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters