summaryrefslogtreecommitdiff
path: root/hack/get_ci_vm.sh
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2019-05-09 15:38:35 -0400
committerChris Evich <cevich@redhat.com>2019-05-22 12:44:37 -0400
commit99bd1d31c7ba69fd38bcbbf9b7b33732ff7f57ca (patch)
tree376f20f25457275bf527fc0545efc5bea9ce8e43 /hack/get_ci_vm.sh
parente0376b9c3f9af07d9e58a04a7cd58a7c065305e3 (diff)
downloadpodman-99bd1d31c7ba69fd38bcbbf9b7b33732ff7f57ca.tar.gz
podman-99bd1d31c7ba69fd38bcbbf9b7b33732ff7f57ca.tar.bz2
podman-99bd1d31c7ba69fd38bcbbf9b7b33732ff7f57ca.zip
hack: Display IP address of VM from script
Useful for accessing it from other terminals. Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'hack/get_ci_vm.sh')
-rwxr-xr-xhack/get_ci_vm.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/hack/get_ci_vm.sh b/hack/get_ci_vm.sh
index 370cd8a5e..82e304d74 100755
--- a/hack/get_ci_vm.sh
+++ b/hack/get_ci_vm.sh
@@ -275,7 +275,9 @@ showrun $SSH_CMD --command "rm -f /tmp/$TARBALL"
echo -e "\n${YEL}Executing environment setup${NOR}"
showrun $SSH_CMD --command "$SETUP_CMD"
-echo -e "\n${YEL}Connecting to $VMNAME\n${RED}(option to delete VM upon logout).${NOR}\n"
+VMIP=$($PGCLOUD compute instances describe $VMNAME --format='get(networkInterfaces[0].accessConfigs[0].natIP)')
+
+echo -e "\n${YEL}Connecting to $VMNAME${NOR}\nPublic IP Address: $VMIP\n${RED}(option to delete VM upon logout).${NOR}\n"
if [[ -n "$ROOTLESS_USER" ]]
then
echo "Re-chowning source files after transfer"