diff --git a/vertical-pod-autoscaler/Dockerfile.openshift b/vertical-pod-autoscaler/Dockerfile.openshift new file mode 100644 index 000000000000..e2f2c5498843 --- /dev/null +++ b/vertical-pod-autoscaler/Dockerfile.openshift @@ -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" diff --git a/vertical-pod-autoscaler/Dockerfile.rhel7 b/vertical-pod-autoscaler/Dockerfile.rhel7 new file mode 100644 index 000000000000..05843e1aebed --- /dev/null +++ b/vertical-pod-autoscaler/Dockerfile.rhel7 @@ -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"