File tree Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 1
- .git
Original file line number Diff line number Diff line change
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] >"
Original file line number Diff line number Diff line change
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] >"
You can’t perform that action at this time.
0 commit comments