Blame docker-builder-i386/build-base.sh

10e43d
#!/bin/bash -x
10e43d
10e43d
set -e
10e43d
10e43d
arch=i386
10e43d
suite=wheezy
10e43d
docker_image="my/debian-$arch:$suite"
10e43d
e71c94
OLDDIR=`pwd`
e71c94
SCRIPT_DIR=$(cd `dirname "$0"`; pwd)
e71c94
cd "$OLDDIR"
e71c94
BASE_DIR=`dirname "$SCRIPT_DIR"`
e71c94
e71c94
CONFIG_FILE="$BASE_DIR/config.sh"
e71c94
if [ -f $CONFIG_FILE ]; then
e71c94
	source $CONFIG_FILE
e71c94
fi
e71c94
e71c94
10e43d
if [ -f debian-$suite-$arch.tar.gz ]; then
10e43d
    docker import - $docker_image < debian-$suite-$arch.tar.gz
10e43d
else
10e43d
    echo "File debian-$suite-$arch.tar.gz not found"
10e43d
    echo "You may try to create it by command ./build-tgz.sh"
10e43d
    echo "or download it from http://icystar.com/downloads/debian-wheezy-i386.tar.gz"
10e43d
fi