Skip to content

Commit

Permalink
Dockerfile.build: switch to fedora:latest
Browse files Browse the repository at this point in the history
CopySuite.TestCopySignatures: Use quay.io instead of docker.io.

Resolves: gh#174

Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 authored and vrothberg committed Feb 24, 2021
1 parent 61b62f9 commit b7bf15b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
13 changes: 8 additions & 5 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM golang:1.14-buster
FROM registry.fedoraproject.org/fedora:33

RUN apt-get update && \
apt-get install -y \
libdevmapper-dev \
libgpgme11-dev
RUN dnf update -y && \
dnf install -y \
btrfs-progs-devel \
device-mapper-devel \
golang \
gpgme-devel \
make

ENV GOPATH=/
WORKDIR /src/github.com/containers/skopeo
2 changes: 1 addition & 1 deletion integration/copy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ func (s *CopySuite) TestCopySignatures(c *check.C) {
"--policy", policy, "copy", "docker://busybox:latest", dirDest)

// type: insecureAcceptAnything
assertSkopeoSucceeds(c, "", "--policy", policy, "copy", "docker://openshift/hello-openshift", dirDest)
assertSkopeoSucceeds(c, "", "--policy", policy, "copy", "docker://quay.io/openshift/origin-hello-openshift", dirDest)

// type: signedBy
// Sign the images
Expand Down
5 changes: 5 additions & 0 deletions integration/fixtures/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
{
"type": "insecureAcceptAnything"
}
],
"quay.io/openshift": [
{
"type": "insecureAcceptAnything"
}
]
},
"dir": {
Expand Down

0 comments on commit b7bf15b

Please sign in to comment.