Skip to content

Commit

Permalink
Revert "Revert aufs support for inigo"
Browse files Browse the repository at this point in the history
This reverts commit 53f2385.

[#107422734]

Signed-off-by: Jen Spinney <[email protected]>
  • Loading branch information
cwlbraa authored and jenspinney committed Nov 6, 2015
1 parent 901462b commit deb51e2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions scripts/ci/run_inigo
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,31 @@ go install github.com/onsi/ginkgo/ginkgo

export GARDEN_ROOTFS=/tmp/opt/inigo/rootfs
mkdir -p $GARDEN_ROOTFS
# mount -t tmpfs tmpfs $GARDEN_ROOTFS
mount -t tmpfs tmpfs $GARDEN_ROOTFS
cp -rp /opt/inigo/rootfs/* $GARDEN_ROOTFS

# used for routing to apps; same logic that Garden uses.
export EXTERNAL_ADDRESS=$(ip route get 8.8.8.8 | sed 's/.*src\s\(.*\)\s/\1/;tx;d;:x')

# GARDEN_GRAPH_PATH is the root of the docker image filesystem
export GARDEN_GRAPH_PATH=/tmp/btrfs/garden
export GARDEN_GRAPH_PATH=/tmp/garden/graph
mkdir -p $GARDEN_GRAPH_PATH
mount -t tmpfs tmpfs $GARDEN_GRAPH_PATH

# workaround until Concourse's garden sets this up for us
if ! grep -qs '/sys' /proc/mounts; then
mount -t sysfs sysfs /sys
fi

source $GARDEN_LINUX_GOPATH/ci/scripts/aufs
permit_device_control
create_loop_devices 256

nodes_flag=""
if [ "$GINKGO_PARALLEL" = "true" ]; then
nodes_flag="-nodes=4"
fi

# workaround until Concourse's garden sets this up for us
mountpoint -q /sys || mount -t sysfs sysfs /sys

pushd $GOPATH_ROOT/src/github.com/cloudfoundry-incubator/inigo
if [ "$GINKGO_PARALLEL" = "true" ]; then
ginkgo $nodes_flag -r -skipPackage=docker -failOnPending -randomizeAllSpecs -trace -race -slowSpecThreshold=10 -keepGoing "$@"
Expand Down
2 changes: 1 addition & 1 deletion src/github.com/cloudfoundry-incubator/inigo
Submodule inigo updated from 5fb652 to 8159fc

0 comments on commit deb51e2

Please sign in to comment.