Skip to content

Commit

Permalink
version: openshift-v4.0
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
  • Loading branch information
hexfusion committed Jan 25, 2019
1 parent 27fc7e2 commit 2f10964
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
.git
20 changes: 20 additions & 0 deletions Dockerfile.openshift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.10 AS builder

ENV GOPATH /go

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

RUN yum install -y git && \
cd $GOPATH/src/go.etcd.io/etcd && \
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/

LABEL io.k8s.display-name="etcd server" \
io.k8s.description="etcd is distributed key-value store which stores the persistent master state for Kubernetes and OpenShift." \
maintainer="Sam Batschelet <sbatsche@redhat.com>"
20 changes: 20 additions & 0 deletions Dockerfile.rhel
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM openshift/golang-builder:1.10 AS builder

ENV GOPATH /go

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

RUN yum install -y make && \
cd $GOPATH/src/go.etcd.io/etcd && \
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/

LABEL io.k8s.display-name="etcd server" \
io.k8s.description="etcd is distributed key-value store which stores the persistent master state for Kubernetes and OpenShift." \
maintainer="Sam Batschelet <sbatsche@redhat.com>"

0 comments on commit 2f10964

Please sign in to comment.