Skip to content

Commit 0714e72

Browse files
authored
Remove working containers when commiting a container image (#3488)
1 parent 30ddc0b commit 0714e72

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

jenkins/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ${_DISTROS:%=image-rpmbuild-%}: image-rpmbuild-%:
8282
buildah run $$container ${PKGMGR} install -y ${RPMBUILD_PACKAGES} && \
8383
buildah run $$container ${PKGMGR} clean all && \
8484
buildah run $$container python3 -m pip install jinja2-cli && \
85-
buildah commit $$container ${PB_CONTAINER_REG}/pbench-rpmbuild:${*}
85+
buildah commit --rm $$container ${PB_CONTAINER_REG}/pbench-rpmbuild:${*}
8686

8787
ci.fedora.Dockerfile: ci.Dockerfile.j2
8888
jinja2 ci.Dockerfile.j2 \

jenkins/Pipeline.gy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ pipeline {
130130
| sort -u \
131131
| xargs podman image rm -f \
132132
|| true'
133+
sh 'buildah rm --all'
133134
}
134135
}
135136
}

server/pbenchinacan/container-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ buildah run $container systemctl enable pbench-server
8484
buildah run $container systemctl enable pbench-index.timer
8585

8686
# Create the container image.
87-
buildah commit $container ${PB_CONTAINER_REG}/${PB_SERVER_IMAGE_NAME}:${PB_SERVER_IMAGE_TAG}
87+
buildah commit --rm $container ${PB_CONTAINER_REG}/${PB_SERVER_IMAGE_NAME}:${PB_SERVER_IMAGE_TAG}

0 commit comments

Comments
 (0)