@@ -452,7 +452,6 @@ while [ $# -gt 0 ]; do
452
452
--pg-version )
453
453
PG_VERSION=" $2 " ; shift 2 ;;
454
454
--pg-config )
455
- # Still unsupported TODO(NikolayS) top priority
456
455
PG_CONFIG=" $2 " ; shift 2;;
457
456
--db-prepared-snapshot )
458
457
# Still unsupported
@@ -1018,15 +1017,7 @@ elif [[ "$RUN_ON" == "aws" ]]; then
1018
1017
msg " To connect docker machine use:"
1019
1018
msg " docker \` docker-machine config $DOCKER_MACHINE \` exec -it pg_nancy_${CURRENT_TS} bash"
1020
1019
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\" "
1030
1021
if [[ " ${AWS_EC2_TYPE: 0: 2} " == " i3" ]]; then
1031
1022
msg " Using high-speed NVMe SSD disks"
1032
1023
# Init i3's NVMe storage, mounting one of the existing volumes to /storage
@@ -1059,6 +1050,15 @@ elif [[ "$RUN_ON" == "aws" ]]; then
1059
1050
docker-machine ssh $DOCKER_MACHINE sudo mount /dev/xvdf /home/storage
1060
1051
fi
1061
1052
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 )
1062
1062
else
1063
1063
err " ASSERT: must not reach this point"
1064
1064
exit 1
0 commit comments