forked from kubernetes/autoscaler
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPSTREAM: <carry>: openshift: Add OpenShift VPA image builds
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 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
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" |
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,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" |