From 125903dbcd2b9a9a7b7173c4890dafa7b02071fd Mon Sep 17 00:00:00 2001 From: fbt Date: Sat, 6 Mar 2021 07:31:06 +0300 Subject: [PATCH] readme; also interactivity Signed-off-by: fbt --- autobuilder/README.md | 12 ++++++++++++ makepkg-podman | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 autobuilder/README.md 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