Skip to content

Commit 3ca7ddd

Browse files
authoredJul 2, 2020
Merge pull request operator-framework#377 from njhale/vendor-grpc
fix(docker): build grpc probe outside of gopath
2 parents b557bda + 8896ee5 commit 3ca7ddd

File tree

398 files changed

+77691
-114485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

398 files changed

+77691
-114485
lines changed
 

‎Dockerfile

+2-7
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ COPY Makefile go.mod go.sum ./
1717
RUN make build
1818

1919
# copy and build vendored grpc_health_probe
20-
RUN mkdir -p /go/src/github.com/grpc-ecosystem && \
21-
cp -R vendor/github.com/grpc-ecosystem/grpc-health-probe /go/src/github.com/grpc-ecosystem/grpc_health_probe && \
22-
cp -R vendor/ /go/src/github.com/grpc-ecosystem/grpc_health_probe && \
23-
rm -rf /go/src/github.com/grpc-ecosystem/grpc_health_probe/vendor/github.com/grpc-ecosystem/grpc-health-probe && \
24-
cd /go/src/github.com/grpc-ecosystem/grpc_health_probe && \
25-
CGO_ENABLED=0 go install -mod=mod -a -tags netgo -ldflags "-w"
20+
RUN CGO_ENABLED=0 go build -mod=vendor -tags netgo -ldflags "-w" ./vendor/github.com/grpc-ecosystem/grpc-health-probe/...
2621

2722
FROM openshift/origin-base
2823

@@ -34,7 +29,7 @@ COPY --from=builder /src/bin/registry-server /bin/registry-server
3429
COPY --from=builder /src/bin/configmap-server /bin/configmap-server
3530
COPY --from=builder /src/bin/appregistry-server /bin/appregistry-server
3631
COPY --from=builder /src/bin/opm /bin/opm
37-
COPY --from=builder /go/bin/grpc-health-probe /bin/grpc_health_probe
32+
COPY --from=builder /src/grpc-health-probe /bin/grpc_health_probe
3833

3934
RUN chgrp -R 0 /registry && \
4035
chmod -R g+rwx /registry

‎go.mod

+8-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ require (
2323
github.com/gofrs/uuid v3.3.0+incompatible // indirect
2424
github.com/golang-migrate/migrate/v4 v4.6.2
2525
github.com/golang/mock v1.3.1
26-
github.com/golang/protobuf v1.3.2
26+
github.com/golang/protobuf v1.4.2
2727
github.com/gorilla/handlers v1.4.2 // indirect
28-
github.com/grpc-ecosystem/grpc-health-probe v0.2.1-0.20181220223928-2bf0a5b182db
28+
github.com/grpc-ecosystem/grpc-health-probe v0.3.2
2929
github.com/mattn/go-sqlite3 v1.10.0
3030
github.com/maxbrunsfeld/counterfeiter/v6 v6.2.2
3131
github.com/onsi/ginkgo v1.12.0
@@ -44,9 +44,13 @@ require (
4444
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20160601141957-9c099fbc30e9 // indirect
4545
go.etcd.io/bbolt v1.3.4
4646
golang.org/x/mod v0.2.0
47-
golang.org/x/net v0.0.0-20191028085509-fe3aa8a45271
47+
golang.org/x/net v0.0.0-20200625001655-4c5254603344
4848
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
49-
google.golang.org/grpc v1.26.0
49+
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae // indirect
50+
golang.org/x/text v0.3.3 // indirect
51+
google.golang.org/genproto v0.0.0-20200701001935-0939c5918c31 // indirect
52+
google.golang.org/grpc v1.30.0
53+
google.golang.org/protobuf v1.25.0 // indirect
5054
gopkg.in/yaml.v2 v2.2.8
5155
k8s.io/api v0.18.2
5256
k8s.io/apiextensions-apiserver v0.18.2

0 commit comments

Comments
 (0)