mirror of
https://github.com/containers/podman.git
synced 2025-06-28 06:18:57 +08:00
Merge pull request #16399 from Luap99/no-apk
test/e2e: do not use apk in builds
This commit is contained in:
@ -165,7 +165,7 @@ var _ = Describe("Podman images", func() {
|
|||||||
|
|
||||||
It("podman images filter before image", func() {
|
It("podman images filter before image", func() {
|
||||||
dockerfile := `FROM quay.io/libpod/alpine:latest
|
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")
|
podmanTest.BuildImage(dockerfile, "foobar.com/before:latest", "false")
|
||||||
result := podmanTest.Podman([]string{"images", "-q", "-f", "before=foobar.com/before:latest"})
|
result := podmanTest.Podman([]string{"images", "-q", "-f", "before=foobar.com/before:latest"})
|
||||||
|
@ -78,13 +78,11 @@ status: {}
|
|||||||
|
|
||||||
var playBuildFile = `
|
var playBuildFile = `
|
||||||
FROM quay.io/libpod/alpine_nginx:latest
|
FROM quay.io/libpod/alpine_nginx:latest
|
||||||
RUN apk update && apk add strace
|
|
||||||
LABEL homer=dad
|
LABEL homer=dad
|
||||||
COPY copyfile /copyfile
|
COPY copyfile /copyfile
|
||||||
`
|
`
|
||||||
var prebuiltImage = `
|
var prebuiltImage = `
|
||||||
FROM quay.io/libpod/alpine_nginx:latest
|
FROM quay.io/libpod/alpine_nginx:latest
|
||||||
RUN apk update && apk add strace
|
|
||||||
LABEL marge=mom
|
LABEL marge=mom
|
||||||
`
|
`
|
||||||
|
|
||||||
|
@ -13,8 +13,8 @@ import (
|
|||||||
var pruneImage = fmt.Sprintf(`
|
var pruneImage = fmt.Sprintf(`
|
||||||
FROM %s
|
FROM %s
|
||||||
LABEL RUN podman --version
|
LABEL RUN podman --version
|
||||||
RUN apk update
|
RUN echo hello > /hello
|
||||||
RUN apk add bash`, ALPINE)
|
RUN echo hello2 > /hello2`, ALPINE)
|
||||||
|
|
||||||
var emptyPruneImage = `
|
var emptyPruneImage = `
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
Reference in New Issue
Block a user