Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 0fd9110

Browse files
authored
Merge branch 'master' into dmius-duration-param
2 parents 3c27d20 + 7ed2114 commit 0fd9110

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

nancy_run.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ while [ $# -gt 0 ]; do
452452
--pg-version )
453453
PG_VERSION="$2"; shift 2 ;;
454454
--pg-config )
455-
#Still unsupported TODO(NikolayS) top priority
456455
PG_CONFIG="$2"; shift 2;;
457456
--db-prepared-snapshot )
458457
#Still unsupported
@@ -1018,15 +1017,7 @@ elif [[ "$RUN_ON" == "aws" ]]; then
10181017
msg " To connect docker machine use:"
10191018
msg " docker \`docker-machine config $DOCKER_MACHINE\` exec -it pg_nancy_${CURRENT_TS} bash"
10201019

1021-
containerHash=$( \
1022-
docker `docker-machine config $DOCKER_MACHINE` run \
1023-
--name="pg_nancy_${CURRENT_TS}" \
1024-
-v /home/ubuntu:/machine_home \
1025-
-v /home/storage:/storage \
1026-
-dit "postgresmen/postgres-with-stuff:pg${PG_VERSION}"
1027-
)
1028-
dockerConfig=$(docker-machine config $DOCKER_MACHINE)
1029-
1020+
docker-machine ssh $DOCKER_MACHINE "sudo sh -c \"mkdir /home/storage\""
10301021
if [[ "${AWS_EC2_TYPE:0:2}" == "i3" ]]; then
10311022
msg "Using high-speed NVMe SSD disks"
10321023
# Init i3's NVMe storage, mounting one of the existing volumes to /storage
@@ -1059,6 +1050,15 @@ elif [[ "$RUN_ON" == "aws" ]]; then
10591050
docker-machine ssh $DOCKER_MACHINE sudo mount /dev/xvdf /home/storage
10601051
fi
10611052
fi
1053+
1054+
containerHash=$( \
1055+
docker `docker-machine config $DOCKER_MACHINE` run \
1056+
--name="pg_nancy_${CURRENT_TS}" \
1057+
-v /home/ubuntu:/machine_home \
1058+
-v /home/storage:/storage \
1059+
-dit "postgresmen/postgres-with-stuff:pg${PG_VERSION}"
1060+
)
1061+
dockerConfig=$(docker-machine config $DOCKER_MACHINE)
10621062
else
10631063
err "ASSERT: must not reach this point"
10641064
exit 1

0 commit comments

Comments
 (0)