Skip to content

Commit

Permalink
UPSTREAM: <carry>: openshift: Add vertical-pod-autoscaler/Dockerfile.…
Browse files Browse the repository at this point in the history
…rhel to match build configuration in ocp-build-data

This change adds a new Dockerfile.rhel file to control building release
images. It updates the baseimages in the Dockerfile used for promotion
in order to ensure it matches the configuration in the
[ocp-build-data
repository](https://github.com/openshift/ocp-build-data/tree/openshift-4.6-rhel-8/images)
used for producing release artifacts.

After this change merges, the release files in
https://github.com/openshift/release/blob/master/ci-operator/config/openshift/vertical-pod-autoscaler-operator/openshift-vertical-pod-autoscaler-operator-master.yaml
should be updated with the new dockerfile path.
  • Loading branch information
elmiko committed Aug 25, 2020
1 parent 76b6b5d commit 3b35af3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions vertical-pod-autoscaler/Dockerfile.rhel
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-openshift-4.6 AS builder
WORKDIR /go/src/k8s.io/autoscaler/vertical-pod-autoscaler
COPY . .
RUN go build ./pkg/admission-controller
RUN go build ./pkg/updater
RUN go build ./pkg/recommender

FROM registry.svc.ci.openshift.org/ocp/4.6:base
COPY --from=builder \
/go/src/k8s.io/autoscaler/vertical-pod-autoscaler/admission-controller \
/go/src/k8s.io/autoscaler/vertical-pod-autoscaler/updater \
/go/src/k8s.io/autoscaler/vertical-pod-autoscaler/recommender \
/usr/bin/
LABEL summary="Vertical Pod Autoscaler for OpenShift and Kubernetes"

0 comments on commit 3b35af3

Please sign in to comment.