Skip to content

Commit 2f10964

Browse files
committed
version: openshift-v4.0
Signed-off-by: Sam Batschelet <[email protected]>
1 parent 27fc7e2 commit 2f10964

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
.git

Dockerfile.openshift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.10 AS builder
2+
3+
ENV GOPATH /go
4+
5+
COPY . $GOPATH/src/go.etcd.io/etcd
6+
7+
RUN yum install -y git && \
8+
cd $GOPATH/src/go.etcd.io/etcd && \
9+
make build
10+
11+
# stage 2
12+
FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base
13+
14+
ENTRYPOINT ["/usr/bin/etcd"]
15+
16+
COPY --from=builder /go/src/go.etcd.io/etcd/bin/etcd /usr/bin/
17+
18+
LABEL io.k8s.display-name="etcd server" \
19+
io.k8s.description="etcd is distributed key-value store which stores the persistent master state for Kubernetes and OpenShift." \
20+
maintainer="Sam Batschelet <[email protected]>"

Dockerfile.rhel

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM openshift/golang-builder:1.10 AS builder
2+
3+
ENV GOPATH /go
4+
5+
COPY . $GOPATH/src/go.etcd.io/etcd
6+
7+
RUN yum install -y make && \
8+
cd $GOPATH/src/go.etcd.io/etcd && \
9+
make build
10+
11+
# stage 2
12+
FROM openshift/origin-base
13+
14+
ENTRYPOINT ["/usr/bin/etcd"]
15+
16+
COPY --from=builder /go/src/go.etcd.io/etcd/bin/etcd /usr/bin/
17+
18+
LABEL io.k8s.display-name="etcd server" \
19+
io.k8s.description="etcd is distributed key-value store which stores the persistent master state for Kubernetes and OpenShift." \
20+
maintainer="Sam Batschelet <[email protected]>"

0 commit comments

Comments
 (0)