]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ci: Run podman command directly without wrapping it with prepare.sh
authorErik Skultety <eskultet@redhat.com>
Wed, 10 Feb 2021 06:22:18 +0000 (07:22 +0100)
committerErik Skultety <eskultet@redhat.com>
Fri, 12 Feb 2021 16:01:41 +0000 (17:01 +0100)
commitee07bffacc30ef40f1cf463a610dfb6e08e4836a
treebc915845127cc06cb6a0ff44a495893d0e8acddb
parent3ca7299a007d5ff03949ba7d42c319d756ffd126
ci: Run podman command directly without wrapping it with prepare.sh

The prepare.sh script isn't currently used and forces us to make use
of sudo to switch the user inside the container from root to $USER
which created a problem on our Debian Slim-based containers which don't
have the 'sudo' package installed.
This patch removes the sudo invocation and instead runs the CMD
directly with podman.

Summary of the changes:
- move the corresponding env variables which we need to be set in the
  environment from the sudo invocation to the podman invocation
- pass --workdir to podman to retain the original behaviour we had with
  sudo spawning a login shell.
- MESON_OPTS env variable doesn't need to propagated to the execution
  environment anymore (like we had to do with sudo), because it's
  defined in the Dockerfile

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
ci/Makefile