mirror of
https://github.com/gwebu-team/profile.d.git
synced 2025-12-11 12:15:47 +00:00
Quick and dirty build with podman on MacOS.
This commit is contained in:
parent
58223f0e8a
commit
b3f0f66356
3 changed files with 65 additions and 0 deletions
11
Makefile
11
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue