forked from Spark/builder
podman!
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
c65a29fc63
commit
5a6687534c
|
@ -2,13 +2,14 @@
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
|
|
||||||
did="pkg-build-$$.$SRANDOM"
|
did="pkg-build-$$.$SRANDOM"
|
||||||
|
mkdir "/tmp/$did"
|
||||||
|
|
||||||
pkg_dest=$1
|
pkg_dest=$1
|
||||||
pkg_url=$2
|
pkg_url=$2
|
||||||
|
|
||||||
cd /home/docker/dockerfiles/builder
|
cd /home/containers/builder
|
||||||
docker build -t "$did" --force-rm .
|
podman build -t "$did" --force-rm .
|
||||||
docker run --rm -v "/tmp/$did:/buildroot" "$did:latest" /build "$pkg_url"
|
podman run --rm -v "/tmp/$did:/buildroot" "$did:latest" /build "$pkg_url"
|
||||||
|
|
||||||
artifacts=( "/tmp/$did/"*.pkg.* )
|
artifacts=( "/tmp/$did/"*.pkg.* )
|
||||||
for i in "${artifacts[@]}"; do
|
for i in "${artifacts[@]}"; do
|
Loading…
Reference in New Issue
Block a user