Blame docker/debian-7-64bit/run.sh

8fa589
#!/bin/bash
8fa589
8fa589
SCRIPT_DIR=$(cd `dirname "$0"`; pwd)
8fa589
BASE_DIR=`dirname "$SCRIPT_DIR"`
8fa589
BASE_DIR=`dirname "$BASE_DIR"`
8fa589
DATA_DIR="$BASE_DIR/docker-builder-data"
8fa589
BUILD_DIR=$DATA_DIR/build
8fa589
CONFIG_FILE="$BASE_DIR/config.sh"
8fa589
PACKET_BUILD_DIR="$BUILD_DIR/packet"
8fa589
SCRIPT_BUILD_DIR="$BUILD_DIR/script"
8fa589
if [ -f $CONFIG_FILE ]; then
8fa589
	source $CONFIG_FILE
8fa589
fi
8fa589
mkdir -p $PACKET_BUILD_DIR
8fa589
8fa589
docker stop "builder" || true
8fa589
docker rm "builder" || true
8fa589
8fa589
docker run -it \
8fa589
    --name "builder" \
8fa589
    --privileged=true \
8fa589
    $DOCKER_RUN_OPTIONS \
8fa589
    -v "$PACKET_BUILD_DIR:/build/packet" \
8fa589
    -v "$SCRIPT_BUILD_DIR:/build/script" \
8fa589
    morevna/build-debian-7-64 \
8fa589
    /build/script/common/manager.sh "$@"
8fa589