Skip to content

Commit

Permalink
Remove working containers when commiting a container image (#3488)
Browse files Browse the repository at this point in the history
  • Loading branch information
webbnh authored Jul 10, 2023
1 parent 30ddc0b commit 0714e72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jenkins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ${_DISTROS:%=image-rpmbuild-%}: image-rpmbuild-%:
buildah run $$container ${PKGMGR} install -y ${RPMBUILD_PACKAGES} && \
buildah run $$container ${PKGMGR} clean all && \
buildah run $$container python3 -m pip install jinja2-cli && \
buildah commit $$container ${PB_CONTAINER_REG}/pbench-rpmbuild:${*}
buildah commit --rm $$container ${PB_CONTAINER_REG}/pbench-rpmbuild:${*}

ci.fedora.Dockerfile: ci.Dockerfile.j2
jinja2 ci.Dockerfile.j2 \
Expand Down
1 change: 1 addition & 0 deletions jenkins/Pipeline.gy
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ pipeline {
| sort -u \
| xargs podman image rm -f \
|| true'
sh 'buildah rm --all'
}
}
}
2 changes: 1 addition & 1 deletion server/pbenchinacan/container-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ buildah run $container systemctl enable pbench-server
buildah run $container systemctl enable pbench-index.timer

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

0 comments on commit 0714e72

Please sign in to comment.