Skip to content

Commit

Permalink
Merge pull request etcd-io#12 from openshift/fix_org
Browse files Browse the repository at this point in the history
Bug 1706103 : Dockerfile: set coreos org as canonical for release-3.3
  • Loading branch information
openshift-merge-robot authored May 6, 2019
2 parents f7546eb + c70d84b commit 1a054c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
12 changes: 5 additions & 7 deletions Dockerfile.openshift
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.10 AS builder

ENV GOPATH /go
WORKDIR /go/src/github.com/coreos/etcd

COPY . $GOPATH/src/go.etcd.io/etcd
COPY . .

RUN yum install -y git && \
cd $GOPATH/src/go.etcd.io/etcd && \
make build
RUN make build

# stage 2
FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base

ENTRYPOINT ["/usr/bin/etcd"]

COPY --from=builder /go/src/go.etcd.io/etcd/bin/etcd /usr/bin/
COPY --from=builder /go/src/go.etcd.io/etcd/bin/etcdctl /usr/bin/
COPY --from=builder /go/src/github.com/coreos/etcd/bin/etcd /usr/bin/
COPY --from=builder /go/src/github.com/coreos/etcd/bin/etcdctl /usr/bin/

LABEL io.k8s.display-name="etcd server" \
io.k8s.description="etcd is a distributed key-value store which stores the persistent master state for Kubernetes and OpenShift." \
Expand Down
12 changes: 5 additions & 7 deletions Dockerfile.rhel
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
FROM openshift/golang-builder:1.10 AS builder

ENV GOPATH /go
WORKDIR /go/src/github.com/coreos/etcd

COPY . $GOPATH/src/go.etcd.io/etcd
COPY . .

RUN yum install -y make && \
cd $GOPATH/src/go.etcd.io/etcd && \
make build
RUN make build

# stage 2
FROM openshift/origin-base

ENTRYPOINT ["/usr/bin/etcd"]

COPY --from=builder /go/src/go.etcd.io/etcd/bin/etcd /usr/bin/
COPY --from=builder /go/src/go.etcd.io/etcd/bin/etcdctl /usr/bin/
COPY --from=builder /go/src/github.com/coreos/etcd/bin/etcd /usr/bin/
COPY --from=builder /go/src/github.com/coreos/etcd/bin/etcdctl /usr/bin/

LABEL io.k8s.display-name="etcd server" \
io.k8s.description="etcd is a distributed key-value store which stores the persistent master state for Kubernetes and OpenShift." \
Expand Down

0 comments on commit 1a054c6

Please sign in to comment.