mirror of
https://github.com/bitnami/minideb.git
synced 2026-06-12 18:11:35 +08:00
44a24cda66
We build oldstable stacksmith base images as well, so build that here. Drop the namibase code as it isn't used.
30 lines
742 B
Bash
Executable File
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
|