Commit 18ebfa3 1 parent b1dc9ac commit 18ebfa3 Copy full SHA for 18ebfa3
File tree 3 files changed +19
-5
lines changed
3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,18 @@ RUN cd $GOPATH/src/github.com/containers/skopeo \
10
10
&& make install
11
11
12
12
# ---------------------------------------------------------------------
13
- # STAGE 2: Build the kubernetes-monitor
13
+ # STAGE 2: Build the go-rpmdb tool.
14
+ # ---------------------------------------------------------------------
15
+ FROM golang:1.13.1-alpine3.10 AS rpmdb-build
16
+
17
+ RUN apk --no-cache add git gcc musl-dev db-dev openssl-dev
18
+ RUN git clone --depth 1 -b 'v1.1.0' https://github.com/snyk/go-rpmdb $GOPATH/src/github.com/snyk/go-rpmdb
19
+ RUN cd $GOPATH/src/github.com/snyk/go-rpmdb \
20
+ && GIT_COMMIT=$(git rev-parse HEAD 2> /dev/null || true) \
21
+ && GO111MODULE=on go build -ldflags "-X main.gitCommit=${GIT_COMMIT}" -o rpmdb ./cmd/rpmdb
22
+
23
+ # ---------------------------------------------------------------------
24
+ # STAGE 3: Build the kubernetes-monitor
14
25
# ---------------------------------------------------------------------
15
26
FROM node:dubnium-alpine
16
27
@@ -31,6 +42,9 @@ COPY --from=skopeo-build /usr/bin/skopeo /usr/bin/skopeo
31
42
COPY --from=skopeo-build /etc/containers/registries.d/default.yaml /etc/containers/registries.d/default.yaml
32
43
COPY --from=skopeo-build /etc/containers/policy.json /etc/containers/policy.json
33
44
45
+ RUN apk --no-cache add db
46
+ COPY --from=rpmdb-build /go/src/github.com/snyk/go-rpmdb/rpmdb /usr/bin/rpmdb
47
+
34
48
WORKDIR /root
35
49
36
50
# Add manifest files and install before adding anything else to take advantage of layer caching
Original file line number Diff line number Diff line change 41
41
"needle" : " ^2.4.0" ,
42
42
"response-time" : " ^2.3.2" ,
43
43
"snyk-config" : " ^2.2.0" ,
44
- "snyk-docker-plugin" : " ^1.32.1 " ,
44
+ "snyk-docker-plugin" : " ^1.33.0 " ,
45
45
"source-map-support" : " ^0.5.9" ,
46
46
"tslib" : " ^1.9.3" ,
47
47
"ws" : " ^7.0.0" ,
You can’t perform that action at this time.
0 commit comments