Skip to content

Commit

Permalink
UPSTREAM: <carry>: openshift: Add OpenShift VPA image builds
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith authored and enxebre committed Mar 17, 2020
1 parent a6461e8 commit a0492ee
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions vertical-pod-autoscaler/Dockerfile.openshift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.12 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/openshift/origin-v4.0: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"
14 changes: 14 additions & 0 deletions vertical-pod-autoscaler/Dockerfile.rhel7
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.12 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.0: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 a0492ee

Please sign in to comment.