Merge pull request #16399 from Luap99/no-apk

test/e2e: do not use apk in builds
This commit is contained in:
Daniel J Walsh
2022-11-04 06:50:19 -04:00
committed by GitHub
3 changed files with 3 additions and 5 deletions

View File

@ -165,7 +165,7 @@ var _ = Describe("Podman images", func() {
It("podman images filter before image", func() {
dockerfile := `FROM quay.io/libpod/alpine:latest
RUN apk update && apk add strace
RUN echo hello > /hello
`
podmanTest.BuildImage(dockerfile, "foobar.com/before:latest", "false")
result := podmanTest.Podman([]string{"images", "-q", "-f", "before=foobar.com/before:latest"})

View File

@ -78,13 +78,11 @@ status: {}
var playBuildFile = `
FROM quay.io/libpod/alpine_nginx:latest
RUN apk update && apk add strace
LABEL homer=dad
COPY copyfile /copyfile
`
var prebuiltImage = `
FROM quay.io/libpod/alpine_nginx:latest
RUN apk update && apk add strace
LABEL marge=mom
`

View File

@ -13,8 +13,8 @@ import (
var pruneImage = fmt.Sprintf(`
FROM %s
LABEL RUN podman --version
RUN apk update
RUN apk add bash`, ALPINE)
RUN echo hello > /hello
RUN echo hello2 > /hello2`, ALPINE)
var emptyPruneImage = `
FROM scratch