File tree Expand file tree Collapse file tree 6 files changed +29
-14
lines changed Expand file tree Collapse file tree 6 files changed +29
-14
lines changed Original file line number Diff line number Diff line change 1
1
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.10 AS builder
2
2
WORKDIR /go/src/github.com/openshift/origin
3
3
COPY . .
4
- RUN make build WHAT=cmd/oc
4
+ RUN make build WHAT=cmd/oc; \
5
+ mkdir -p /tmp/build; \
6
+ cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/oc /tmp/build/oc
5
7
6
8
FROM registry.svc.ci.openshift.org/ocp/4.0:base
7
- COPY --from=builder /go/src/github.com/openshift/origin/_output/local/bin/linux/amd64 /oc /usr/bin/
9
+ COPY --from=builder /tmp/build /oc /usr/bin/
8
10
RUN for i in kubectl openshift-deploy openshift-docker-build openshift-sti-build openshift-git-clone openshift-manage-dockerfile openshift-extract-image-content openshift-recycle; do ln -s /usr/bin/oc /usr/bin/$i; done
9
11
LABEL io.k8s.display-name="OpenShift Client" \
10
12
io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \
Original file line number Diff line number Diff line change 1
1
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.10 AS builder
2
2
WORKDIR /go/src/github.com/openshift/origin
3
3
COPY . .
4
- RUN make build WHAT=vendor/k8s.io/kubernetes/cmd/hyperkube
4
+ RUN make build WHAT=vendor/k8s.io/kubernetes/cmd/hyperkube; \
5
+ mkdir -p /tmp/build; \
6
+ cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/hyperkube /tmp/build/hyperkube
5
7
6
8
FROM registry.svc.ci.openshift.org/ocp/4.0:base
7
- COPY --from=builder /go/src/github.com/openshift/origin/_output/local/bin/linux/amd64 /hyperkube /usr/bin/
9
+ COPY --from=builder /tmp/build /hyperkube /usr/bin/
8
10
LABEL io.k8s.display-name="OpenShift Kubernetes Server Commands" \
9
11
io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \
10
12
io.openshift.tags="openshift,hyperkube" \
Original file line number Diff line number Diff line change 1
1
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.10 AS builder
2
2
WORKDIR /go/src/github.com/openshift/origin
3
3
COPY . .
4
- RUN make build WHAT=cmd/hypershift
4
+ RUN make build WHAT=cmd/hypershift; \
5
+ mkdir -p /tmp/build; \
6
+ cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/hypershift /tmp/build/hypershift
5
7
6
8
FROM registry.svc.ci.openshift.org/ocp/4.0:base
7
- COPY --from=builder /go/src/github.com/openshift/origin/_output/local/bin/linux/amd64 /hypershift /usr/bin/
9
+ COPY --from=builder /tmp/build /hypershift /usr/bin/
8
10
LABEL io.k8s.display-name="OpenShift Server Commands" \
9
11
io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \
10
12
io.openshift.tags="openshift,hypershift"
Original file line number Diff line number Diff line change @@ -7,12 +7,17 @@ RUN make build WHAT=" \
7
7
vendor/github.com/containernetworking/plugins/plugins/ipam/host-local \
8
8
vendor/github.com/containernetworking/plugins/plugins/main/loopback \
9
9
"
10
+ RUN mkdir -p /tmp/build; \
11
+ cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/openshift-sdn /tmp/build/openshift-sdn; \
12
+ cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/sdn-cni-plugin /tmp/build/sdn-cni-plugin; \
13
+ cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/loopback /tmp/build/loopback; \
14
+ cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/host-local /tmp/build/host-local
10
15
11
16
FROM registry.svc.ci.openshift.org/ocp/4.0:base
12
- COPY --from=builder /go/src/github.com/openshift/origin/_output/local/bin/linux/amd64 /openshift-sdn /usr/bin/
13
- COPY --from=builder /go/src/github.com/openshift/origin/_output/local/bin/linux/amd64 /sdn-cni-plugin /opt/cni/bin/openshift-sdn
14
- COPY --from=builder /go/src/github.com/openshift/origin/_output/local/bin/linux/amd64 /loopback /opt/cni/bin/
15
- COPY --from=builder /go/src/github.com/openshift/origin/_output/local/bin/linux/amd64 /host-local /opt/cni/bin/
17
+ COPY --from=builder /tmp/build /openshift-sdn /usr/bin/
18
+ COPY --from=builder /tmp/build /sdn-cni-plugin /opt/cni/bin/openshift-sdn
19
+ COPY --from=builder /tmp/build /loopback /opt/cni/bin/
20
+ COPY --from=builder /tmp/build /host-local /opt/cni/bin/
16
21
COPY images/sdn/scripts/* /usr/sbin/
17
22
18
23
RUN INSTALL_PKGS=" \
Original file line number Diff line number Diff line change 1
1
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.10 AS builder
2
2
WORKDIR /go/src/github.com/openshift/origin
3
3
COPY . .
4
- RUN make build WHAT=cmd/template-service-broker
4
+ RUN make build WHAT=cmd/template-service-broker; \
5
+ mkdir -p /tmp/build; \
6
+ cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/template-service-broker /tmp/build/template-service-broker
5
7
6
8
FROM registry.svc.ci.openshift.org/ocp/4.0:base
7
- COPY --from=builder /go/src/github.com/openshift/origin/_output/local/bin/linux/amd64 /template-service-broker /usr/bin/
9
+ COPY --from=builder /tmp/build /template-service-broker /usr/bin/
8
10
LABEL io.k8s.display-name="OpenShift Template Service Broker" \
9
11
io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \
10
12
io.openshift.tags="openshift"
Original file line number Diff line number Diff line change 1
1
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.10 AS builder
2
2
WORKDIR /go/src/github.com/openshift/origin
3
3
COPY . .
4
- RUN make build WHAT=cmd/openshift-tests
4
+ RUN make build WHAT=cmd/openshift-tests; \
5
+ mkdir -p /tmp/build; \
6
+ cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/openshift-tests /tmp/build/openshift-tests
5
7
6
8
FROM registry.svc.ci.openshift.org/ocp/4.0:cli
7
- COPY --from=builder /go/src/github.com/openshift/origin/_output/local/bin/linux/amd64 /openshift-tests /usr/bin/
9
+ COPY --from=builder /tmp/build /openshift-tests /usr/bin/
8
10
RUN yum install --setopt=tsflags=nodocs -y git gzip util-linux && yum clean all && rm -rf /var/cache/yum/* && \
9
11
git config --system user.name test && \
10
12
git config --system user.email
[email protected]
You can’t perform that action at this time.
0 commit comments