Skip to content

Commit

Permalink
edit start scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel committed Nov 25, 2014
1 parent ab68e8b commit bc70ae2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions start_bbd.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/bin/bash
SOURCE_DIR="${BASH_SOURCE[0]}"
SOURCE_DIR=$(dirname $SOURCE_DIR)
SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ID_FILE=$SOURCE_DIR"/bbd.id"
CONTAINER_ID=`docker run -d samuelololol/gentoo-buildbot`
BBD_DIR=$SOURCE_DIR"/buildbot"

CONTAINER_NAME="bbd"
HOST_BDD_PORT=8011
CLIENT_MOUNT_POINT="/buildbot"


CONTAINER_ID=`docker run -d --name bbd -p $HOST_BDD_PORT:8010 -v $BBD_DIR:$CLIENT_MOUNT_POINT samuelololol/gentoo-buildbot`
echo $CONTAINER_ID > $ID_FILE

0 comments on commit bc70ae2

Please sign in to comment.