Blame docker-builder/build.sh

1b5f3d
#!/bin/bash
1b5f3d
e14835
SCRIPT_FILE=`realpath "$0"`
e14835
SCRIPT_DIR=`dirname "$SCRIPT_FILE"`
95dbc1
BASE_DIR=`dirname "$SCRIPT_DIR"`
1b5f3d
95dbc1
CONFIG_FILE="$BASE_DIR/config.sh"
95dbc1
PACKET_BUILD_DIR="$BUILD_DIR/packet"
95dbc1
SCRIPT_BUILD_DIR="$BUILD_DIR/script"
95dbc1
if [ -f $CONFIG_FILE ]; then
95dbc1
	source $CONFIG_FILE
95dbc1
fi
95dbc1
export PACKET_BUILD_DIR
95dbc1
mkdir -p $PACKET_BUILD_DIR
95dbc1
95dbc1
docker build -t my/builder $DOCKER_BUILD_OPTIONS "$SCRIPT_DIR"