This repository was archived by the owner on Aug 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -833,15 +833,7 @@ elif [[ "$RUN_ON" == "aws" ]]; then
833
833
msg " To connect docker machine use:"
834
834
msg " docker \` docker-machine config $DOCKER_MACHINE \` exec -it pg_nancy_${CURRENT_TS} bash"
835
835
836
- containerHash=$( \
837
- docker ` docker-machine config $DOCKER_MACHINE ` run \
838
- --name=" pg_nancy_${CURRENT_TS} " \
839
- -v /home/ubuntu:/machine_home \
840
- -v /home/storage:/storage \
841
- -dit " postgresmen/postgres-with-stuff:pg${PG_VERSION} "
842
- )
843
- dockerConfig=$( docker-machine config $DOCKER_MACHINE )
844
-
836
+ docker-machine ssh $DOCKER_MACHINE " sudo sh -c \" mkdir /home/storage\" "
845
837
if [[ " ${AWS_EC2_TYPE: 0: 2} " == " i3" ]]; then
846
838
msg " Using high-speed NVMe SSD disks"
847
839
# Init i3's NVMe storage, mounting one of the existing volumes to /storage
@@ -874,6 +866,15 @@ elif [[ "$RUN_ON" == "aws" ]]; then
874
866
docker-machine ssh $DOCKER_MACHINE sudo mount /dev/xvdf /home/storage
875
867
fi
876
868
fi
869
+
870
+ containerHash=$( \
871
+ docker ` docker-machine config $DOCKER_MACHINE ` run \
872
+ --name=" pg_nancy_${CURRENT_TS} " \
873
+ -v /home/ubuntu:/machine_home \
874
+ -v /home/storage:/storage \
875
+ -dit " postgresmen/postgres-with-stuff:pg${PG_VERSION} "
876
+ )
877
+ dockerConfig=$( docker-machine config $DOCKER_MACHINE )
877
878
else
878
879
err " ASSERT: must not reach this point"
879
880
exit 1
You can’t perform that action at this time.
0 commit comments