Quick and dirty build with podman on MacOS.

This commit is contained in:
Doncho Gunchev 2024-07-14 17:17:48 +03:00
parent 58223f0e8a
commit b3f0f66356
No known key found for this signature in database
GPG key ID: D3FF0619433A66E2
3 changed files with 65 additions and 0 deletions

View file

@ -47,3 +47,14 @@ changelog:
.PHONY: clean
clean:
rm -rf dist
.PHONY: podman_rpm
podman_rpm:
podman buildx build -t podman_rpm_build -f Dockerfile-build . # --platform linux/amd64
# Extract the RPMs from the container to ./dist/ locally.
if ! test -d dist; then mkdir dist; fi
podman run --rm -d --name=build localhost/podman_rpm_build /usr/bin/bash -c "trap : TERM INT; sleep infinity & wait"
podman cp build:/tmp/RPMS/. ./dist/
podman stop build
podman image rm localhost/podman_rpm_build