diff --git a/autobuilder/README.md b/autobuilder/README.md new file mode 100644 index 0000000..8ab3098 --- /dev/null +++ b/autobuilder/README.md @@ -0,0 +1,12 @@ +Spark autobuilder +================= + +To use the build scripts, grab the latest Spark rootfs in one of the following ways: + * `curl -sL https://spark.fleshless.org/rootfs/latest.tar.xz | podman import - localhost/spark` + * `git clone https://code.fleshless.org/Spark/spark-rootfs.git; cd spark-rootfs; podman build --rm -t localhost/spark .` + +Then build a builder image from `./autobuilder`: `cd ./autobuilder; podman build --rm -t localhost/spark:autobuilder .` + +Examples: + * `git clone https://code.fleshless.org/PKGBUILDs/ssm-git /tmp/ssm-git; cd /tmp/ssm-git; makepkg-podman -sL` + * `podman-ci /tmp/artifacts; makepkg-ci https://code.fleshless.org/PKGBUILDs/ssm-git` diff --git a/makepkg-podman b/makepkg-podman index a1b663b..884c24e 100755 --- a/makepkg-podman +++ b/makepkg-podman @@ -3,7 +3,7 @@ image=${PODMAN_IMAGE:-localhost/spark:autobuilder} podman_cmd=( - podman run --rm -u root + podman run --rm -it -u root --userns=keep-id -v "$PWD:/buildroot" --workdir /buildroot