Merge "Add possibility to build with podman/buildah"

This commit is contained in:
Zuul 2018-12-05 00:14:01 +00:00 committed by Gerrit Code Review
commit aa6c406e39
1 changed files with 8 additions and 1 deletions

View File

@ -2,7 +2,14 @@
function build_test_container {
pushd "${DEST}/kuryr-tempest-plugin/test_container"
docker build -t kuryr/demo . -f Dockerfile
# FIXME(dulek): Until https://github.com/containers/buildah/issues/1206 is
# resolved instead of podman we need to use buildah directly,
# hence this awful if clause.
if [[ ${CONTAINER_ENGINE} == 'crio' ]]; then
sudo buildah bud -t docker.io/kuryr/demo -f Dockerfile .
else
docker build -t kuryr/demo . -f Dockerfile
fi
popd
}