Blame chrooter/build.sh

e71c94
#!/bin/bash
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
PACKET_BUILD_DIR="$BUILD_DIR/packet"
e71c94
SCRIPT_BUILD_DIR="$BUILD_DIR/script"
e71c94
if [ -f $CONFIG_FILE ]; then
e71c94
	source $CONFIG_FILE
e71c94
fi
e71c94
export PACKET_BUILD_DIR
e71c94
mkdir -p $PACKET_BUILD_DIR
e71c94
e71c94
docker build -t my/builder $DOCKER_BUILD_OPTIONS "$SCRIPT_DIR"