Skip to content

Commit

Permalink
Merge pull request #11 from ericavonb/build-release
Browse files Browse the repository at this point in the history
chore(Dockerfile*): standardize dockerfiles + add rhel7
  • Loading branch information
openshift-merge-robot authored Jan 21, 2019
2 parents 2465eb1 + cf16135 commit ac835ec
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
17 changes: 13 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.10 AS builder
COPY . /go/src/github.com/openshift/cluster-machine-appover
RUN cd /go/src/github.com/openshift/cluster-machine-appover && go build -o machine-approver .
WORKDIR /go/src/github.com/openshift/cluster-machine-appover
COPY . .
RUN make build

FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base
COPY --from=builder /go/src/github.com/openshift/cluster-machine-appover/machine-approver /usr/bin/machine-approver
COPY --from=builder /go/src/github.com/openshift/cluster-machine-appover/machine-approver /usr/bin/
COPY manifests /manifests
LABEL io.openshift.release.operator true
ENTRYPOINT ["/usr/bin/machine-approver"]
LABEL io.k8s.display-name="OpenShift cluster-machine-approver" \
io.k8s.description="This is an OpenShift component for managing machine approval" \
com.redhat.component="cluster-machine-approver" \
maintainer="OpenShift Auth Team <[email protected]>" \
name="openshift/ose-cluster-machine-approver" \
version="v4.0.0" \
io.openshift.tags="openshift" \
io.openshift.release.operator=true
19 changes: 14 additions & 5 deletions Dockerfile.rhel7
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.10 AS builder
COPY . /go/src/github.com/openshift/cluster-machine-appover
RUN cd /go/src/github.com/openshift/cluster-machine-appover && go build -o machine-approver .
WORKDIR /go/src/github.com/openshift/cluster-machine-appover
COPY . .
RUN make build

FROM registry.svc.ci.openshift.org/ocp/origin-v4.0:base
COPY --from=builder /go/src/github.com/openshift/cluster-machine-appover/machine-approver /usr/bin/machine-approver
FROM registry.svc.ci.openshift.org/ocp/4.0:base
COPY --from=builder /go/src/github.com/openshift/cluster-machine-appover/machine-approver /usr/bin/
COPY manifests /manifests
LABEL io.openshift.release.operator=true
ENTRYPOINT ["/usr/bin/machine-approver"]
LABEL io.k8s.display-name="OpenShift cluster-machine-approver" \
io.k8s.description="This is an OpenShift component for approving new machines" \
com.redhat.component="cluster-machine-approver" \
maintainer="OpenShift Auth Team <[email protected]>" \
name="openshift/ose-cluster-machine-approver" \
version="v4.0.0" \
io.openshift.tags="openshift" \
io.openshift.release.operator=true

0 comments on commit ac835ec

Please sign in to comment.