Put every suite in its own rootfs. Re #3

This makes it easier to build suites in parallel from a local checkout
and/or keep the rootfs's of local builds around for investigation.
This commit is contained in:
Olaf Meeuwissen 2017-10-23 20:44:25 +09:00
parent 0595d723ab
commit 397fddc4e5
5 changed files with 6 additions and 8 deletions

View File

@ -1,4 +1,3 @@
*
!./repository@devuan.org.asc
!./rootfs.tar.gz
!./rootfs-slim.tar.gz
!./rootfs*.tar.gz

3
.gitignore vendored
View File

@ -1,3 +1,2 @@
/rootfs
/rootfs-slim
/rootfs*
/rootfs*.tar.gz

View File

@ -11,7 +11,7 @@ apt-get update
apt-get install debootstrap -q -y
suite=$1
rootfs=$2
rootfs=$2-$suite
debootstrap \
--force-check-gpg \

View File

@ -22,7 +22,7 @@ STAMP=$(date +%F)
cat > Dockerfile <<EOF
FROM scratch
ADD $ROOTFS.tar.gz /
ADD $ROOTFS-$SUITE.tar.gz /
CMD ["bash"]
EOF
@ -47,7 +47,7 @@ STAMP=$(date +%F)
cat > Dockerfile <<EOF
FROM scratch
ADD $ROOTFS-slim.tar.gz /
ADD $ROOTFS-$SUITE-slim.tar.gz /
CMD ["bash"]
EOF

View File

@ -8,7 +8,7 @@ DEBIAN_FRONTEND=noninteractive
export DEBIAN_FRONTEND
suite=$1
rootfs=$2
rootfs=$2-$suite
cp -al $rootfs $rootfs-slim
rootfs=$rootfs-slim