Blame docker/debian-7-32bit/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-i386" || true
8fa589
docker rm "builder-i386" || true
8fa589
8fa589
docker run -it \
8fa589
    --name "builder-i386" \
8fa589
    $DOCKER_RUN_OPTIONS \
8fa589
    --privileged=true \
8fa589
    -v "$PACKET_BUILD_DIR:/build/packet" \
8fa589
    -v "$SCRIPT_BUILD_DIR:/build/script" \
8fa589
    -e PLATFORM=linux-i386 \
8fa589
    morevna/build-debian-7-32 \
8fa589
    setarch i686 /build/script/common/manager.sh "$@"
8fa589