~kdsch/containerized-build

0756dae8b11fd27eba77fd759f41bd0c39889e34 — Karl Schultheisz a month ago cca741f container-versioning
envsetup.sh: let podman_wrapper be a function, not a variable
1 files changed, 10 insertions(+), 3 deletions(-)

M envsetup.sh
M envsetup.sh => envsetup.sh +10 -3
@@ 6,6 6,13 @@ build_container_image() {
	podman build -t build-environment:$(hash) .
}

PODMAN_WRAPPER='podman run --pull=never --rm --volume=.:/home/root build-environment'
alias meson='$PODMAN_WRAPPER:$(hash) meson'
alias ninja='$PODMAN_WRAPPER:$(hash) ninja'
podman_wrapper() {
	podman run \
		--pull=never \
		--rm \
		--volume=.:/home/root build-environment:$(hash) \
		$@
}

alias meson='podman_wrapper meson'
alias ninja='podman_wrapper ninja'