1
0
mirror of https://github.com/rancher/os.git synced 2025-09-04 00:04:25 +00:00

Update build for docker-from-scratch

This commit is contained in:
Darren Shepherd
2015-08-06 00:04:46 -07:00
parent d56b6ae2a5
commit 598f47b68d
10 changed files with 57 additions and 40 deletions

View File

@@ -1,5 +1,13 @@
#!/bin/bash
set -e
docker rm -fv ros-build > /dev/null 2>&1 || :
exec docker run -v /var/run/docker.sock:/var/run/docker.sock --name=ros-build ros-build "$@"
DOCKER_ARGS=
if [ -n "$BIND_DIR" ]; then
if [ "$BIND_DIR" = "." ]; then
BIND_DIR=$(pwd)
fi
DOCKER_ARGS="-t -v $BIND_DIR:/go/src/github.com/rancherio/os"
fi
docker rm -fv ros-build >/dev/null 2>&1 || true
exec docker run -i -v /var/run/docker.sock:/var/run/docker.sock $DOCKER_ARGS --name=ros-build ros-build "$@"