Skip to content

Commit

Permalink
Make docker files more uniform between HPO and prom-fed
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Dec 11, 2024
1 parent d064a4b commit 67babd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package/Dockerfile-helm-project-operator
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM --platform=$BUILDPLATFORM rancher/mirrored-tonistiigi-xx:1.3.0 AS xx
FROM --platform=$BUILDPLATFORM registry.suse.com/bci/golang:1.22 AS helm

# Clone repository once, and reuse it for target archs.
ARG HELM_VERSION=release-v3.9.0
ARG HELM_VERSION=v3.13.3-rancher1
ADD --keep-git-dir=true https://github.com/rancher/helm.git#${HELM_VERSION} /helm
RUN cd /helm && go mod download

Expand All @@ -27,11 +27,11 @@ ENV YQ_VERSION=v4.25.1
RUN zypper -n install git curl wget make
RUN export ARCH=$(go env GOHOSTARCH)
RUN wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_${TARGETARCH} -O /usr/bin/yq && chmod +x /usr/bin/yq;
COPY --from=helm /helm/bin/helm /usr/local/bin/
COPY --from=helm ./helm/bin/helm /usr/local/bin/
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN make build
RUN ./scripts/build

FROM registry.suse.com/bci/bci-micro:latest
RUN echo 'helmprojectoperator:x:1000:1000::/home/helmprojectoperator:/bin/bash' >> /etc/passwd && \
Expand Down
2 changes: 1 addition & 1 deletion package/Dockerfile-prometheus-federator
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ ARG REPO=''
ENV EMBEDDED_CHART_VERSION=$EMBEDDED_CHART_VERSION TAG=$TAG REPO=$REPO

WORKDIR /usr/src/app
COPY --from=helm ./helm/bin/helm /usr/local/bin/
RUN zypper -n install git vim less file curl wget patch
COPY --from=helm ./helm/bin/helm /usr/local/bin/
COPY go.mod go.sum ./
RUN go mod download
COPY . .
Expand Down

0 comments on commit 67babd8

Please sign in to comment.