open-nomad/e2e/migrations/docker-run.sh
2017-11-01 15:21:05 -05:00

15 lines
537 B
Bash
Executable file

CURRENT_DIRECTORY=`pwd`
ROOT_DIRECTORY="$( dirname "$(dirname "$CURRENT_DIRECTORY")")"
docker run --privileged -v \
$ROOT_DIRECTORY:/gopkg/src/github.com/hashicorp/nomad \
-it nomad-e2e /bin/bash \
-c "cd gopkg/src/github.com/hashicorp/nomad/e2e/migrations && go test --run \
TestJobMigrations -integration"
docker run --privileged \
-v $ROOT_DIRECTORY:/gopkg/src/github.com/hashicorp/nomad \
-it nomad-e2e /bin/bash \
-c "cd gopkg/src/github.com/hashicorp/nomad/e2e/migrations && go test --run \
TestMigrations_WithACLs -integration"