Blame docker-builder/build-base.sh

e71c94
#!/bin/bash -x
e71c94
e71c94
set -e
e71c94
e71c94
arch=amd64
e71c94
suite=wheezy
e71c94
docker_image="debian:7"
e71c94
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
e71c94
if [ -f debian-$suite-$arch.tar.gz ]; then
e71c94
    docker import - $docker_image < debian-$suite-$arch.tar.gz
e71c94
else
e71c94
    echo "File debian-$suite-$arch.tar.gz not found"
e71c94
    echo "You may try to create it by command ./build-tgz.sh"
e71c94
    echo "or download it from http://icystar.com/downloads/debian-wheezy-i386.tar.gz"
e71c94
fi