We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96963e4 commit 580fbfeCopy full SHA for 580fbfe
remote-img-load.sh
@@ -1,12 +1,13 @@
1
#!/bin/bash
2
3
readonly HOST="$1"
4
+readonly USER=${2:-ubuntu}
5
if [ -z "${HOST}" ]; then
6
echo "Usage: ./remote-img-load.sh <host>"
7
exit 1
8
fi
9
10
./build-image.sh
11
echo "Transfering image to ${HOST} ..."
-docker save jembi/platform:latest | bzip2 | ssh ubuntu@"${HOST}" docker load
12
+docker save jembi/platform:latest | bzip2 | ssh "${USER}@${HOST}" docker load
13
echo "Image transfered"
0 commit comments