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:
parent
0595d723ab
commit
397fddc4e5
|
|
@ -1,4 +1,3 @@
|
||||||
*
|
*
|
||||||
!./repository@devuan.org.asc
|
!./repository@devuan.org.asc
|
||||||
!./rootfs.tar.gz
|
!./rootfs*.tar.gz
|
||||||
!./rootfs-slim.tar.gz
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
||||||
/rootfs
|
/rootfs*
|
||||||
/rootfs-slim
|
|
||||||
/rootfs*.tar.gz
|
/rootfs*.tar.gz
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ apt-get update
|
||||||
apt-get install debootstrap -q -y
|
apt-get install debootstrap -q -y
|
||||||
|
|
||||||
suite=$1
|
suite=$1
|
||||||
rootfs=$2
|
rootfs=$2-$suite
|
||||||
|
|
||||||
debootstrap \
|
debootstrap \
|
||||||
--force-check-gpg \
|
--force-check-gpg \
|
||||||
|
|
|
||||||
4
build.sh
4
build.sh
|
|
@ -22,7 +22,7 @@ STAMP=$(date +%F)
|
||||||
|
|
||||||
cat > Dockerfile <<EOF
|
cat > Dockerfile <<EOF
|
||||||
FROM scratch
|
FROM scratch
|
||||||
ADD $ROOTFS.tar.gz /
|
ADD $ROOTFS-$SUITE.tar.gz /
|
||||||
CMD ["bash"]
|
CMD ["bash"]
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
@ -47,7 +47,7 @@ STAMP=$(date +%F)
|
||||||
|
|
||||||
cat > Dockerfile <<EOF
|
cat > Dockerfile <<EOF
|
||||||
FROM scratch
|
FROM scratch
|
||||||
ADD $ROOTFS-slim.tar.gz /
|
ADD $ROOTFS-$SUITE-slim.tar.gz /
|
||||||
CMD ["bash"]
|
CMD ["bash"]
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue