Files
minideb/buildall
T
James Westby 44a24cda66 Build wheezy as well.
We build oldstable stacksmith base images as well, so build that
here.

Drop the namibase code as it isn't used.
2016-10-03 17:44:09 +02:00

30 lines
742 B
Bash
Executable File

#!/bin/bash
set -e
set -u
DISTS="jessie
unstable
wheezy
"
LATEST=jessie
BASENAME=jamesw/minideb
mkdir -p build
for DIST in $DISTS; do
[ -f debootstrap/$DIST ] || (echo "buildall: Unknown distribution: $DIST" && exit 1)
echo "============================================"
echo "Building $BASENAME:$DIST"
echo "============================================"
./mkimage build/$DIST.tar $DIST
IMPORTED=$(docker import --change "CMD /bin/bash" build/$DIST.tar)
echo "============================================"
echo "Running tests for $BASENAME:$DIST"
echo "============================================"
./test $IMPORTED
docker tag $IMPORTED $BASENAME:$DIST
done
docker tag $BASENAME:$LATEST $BASENAME:latest