Skip to content

Commit f02a6b7

Browse files
authored
Merge pull request #1002 from snyk/fix/upgrades
Fix/upgrades
2 parents 7e0a83a + 7ba059f commit f02a6b7

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
#---------------------------------------------------------------------
44
FROM fedora:32 AS skopeo-build
55

6-
RUN dnf install -y golang git make
7-
RUN dnf install -y go-md2man gpgme-devel libassuan-devel btrfs-progs-devel device-mapper-devel
8-
RUN git clone --depth 1 -b 'v1.5.1' https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo
9-
RUN cd $GOPATH/src/github.com/containers/skopeo \
10-
&& make bin/skopeo DISABLE_CGO=1 \
11-
&& make install
6+
RUN dnf install -y skopeo
127

138
#---------------------------------------------------------------------
149
# STAGE 2: Build credential helpers inside a temporary container
@@ -56,7 +51,7 @@ COPY --chown=snyk:snyk --from=cred-helpers-build /go/bin/docker-credential-acr-e
5651

5752
WORKDIR /srv/app
5853

59-
COPY --chown=snyk:snyk --from=skopeo-build /usr/local/bin/skopeo /usr/bin/skopeo
54+
COPY --chown=snyk:snyk --from=skopeo-build /usr/bin/skopeo /usr/bin/skopeo
6055
COPY --chown=snyk:snyk --from=skopeo-build /etc/containers/registries.d/default.yaml /etc/containers/registries.d/default.yaml
6156
COPY --chown=snyk:snyk --from=skopeo-build /etc/containers/policy.json /etc/containers/policy.json
6257

snyk-operator-certified/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/operator-framework/helm-operator:v1.15
1+
FROM quay.io/operator-framework/helm-operator:v1.17
22

33
LABEL name="Snyk Operator" \
44
maintainer="[email protected]" \

snyk-operator/build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/operator-framework/helm-operator:v1.15
1+
FROM quay.io/operator-framework/helm-operator:v1.17
22

33
LABEL name="Snyk Operator" \
44
maintainer="[email protected]" \

test/fixtures/insecure-registries/push-dockerhub-image-to-local-registry.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ spec:
99
- name: docker-io
1010
containers:
1111
- name: my-container
12-
image: docker.io/library/golang:1.13.1-alpine3.10
12+
image: docker.io/library/fedora:35
1313
command:
1414
- "sh"
1515
args:
1616
- "-c"
17-
- "apk --no-cache add git make gcc musl-dev ostree-dev go-md2man &&
18-
git clone --depth 1 -b 'v0.2.0' https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo &&
19-
cd $GOPATH/src/github.com/containers/skopeo &&
20-
make binary-local-static DISABLE_CGO=1 &&
21-
make install &&
17+
- "dnf install -y skopeo &&
2218
skopeo copy --dest-tls-verify=false docker://docker.io/library/python:rc-buster docker://kind-registry:5000/python:rc-buster"
2319
restartPolicy: Never
2420
backoffLimit: 4

0 commit comments

Comments
 (0)