mirror of
https://github.com/bitnami/minideb.git
synced 2026-06-04 10:13:55 +08:00
1a5519d4f1
We don't use it, and there won't be too much interest in it as jessie has been out for a while.
32 lines
881 B
Bash
Executable File
32 lines
881 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -u
|
|
|
|
DISTS="jessie
|
|
unstable
|
|
"
|
|
LATEST=jessie
|
|
|
|
BASENAME=bitnami/minideb
|
|
GCR_BASENAME=gcr.io/bitnami-containers/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
|
|
docker tag $IMPORTED $GCR_BASENAME:$DIST
|
|
done
|
|
docker tag $BASENAME:$LATEST $BASENAME:latest
|
|
docker tag $GCR_BASENAME:$LATEST $GCR_BASENAME:latest
|