Skip to content

Commit 063f3f4

Browse files
committedFeb 14, 2019
Incorporate new binary into docker images
- Add appregistry-server binary into image for OpenShift. - Add a new docker file for upstream
1 parent 615435b commit 063f3f4

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
 

‎Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ WORKDIR /registry
3030
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/bin/initializer /bin/initializer
3131
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/bin/registry-server /bin/registry-server
3232
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/bin/configmap-server /bin/configmap-server
33+
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/bin/appregistry-server /bin/appregistry-server
3334
COPY --from=builder /go/bin/grpc_health_probe /bin/grpc_health_probe
3435

3536
RUN chgrp -R 0 /registry && \

‎appr-registry.Dockerfile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM golang:1.10-alpine as builder
2+
3+
RUN apk update && apk add sqlite build-base git mercurial
4+
WORKDIR /go/src/github.com/operator-framework/operator-registry
5+
6+
COPY vendor vendor
7+
COPY cmd cmd
8+
COPY pkg pkg
9+
COPY Makefile Makefile
10+
RUN make static
11+
12+
FROM golang:1.10-alpine as probe-builder
13+
14+
RUN apk update && apk add build-base git
15+
ENV ORG github.com/grpc-ecosystem
16+
ENV PROJECT $ORG/grpc_health_probe
17+
WORKDIR /go/src/$PROJECT
18+
19+
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/vendor/$ORG/grpc-health-probe .
20+
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/vendor .
21+
RUN CGO_ENABLED=0 go install -a -tags netgo -ldflags "-w"
22+
23+
24+
FROM scratch
25+
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/bin/appregistry-server /bin/appregistry-server
26+
COPY --from=probe-builder /go/bin/grpc_health_probe /bin/grpc_health_probe
27+
EXPOSE 50051
28+
ENTRYPOINT ["/bin/appregistry-server"]

0 commit comments

Comments
 (0)
Please sign in to comment.