Auto-creation of networks.
This commit is contained in:
parent
efcbdd0a1c
commit
637ab5608c
@ -1,4 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
for NETWORK in reverse-proxy
|
||||||
|
do
|
||||||
|
sudo docker network inspect ${NETWORK} && continue
|
||||||
|
sudo docker network create ${NETWORK}
|
||||||
|
sudo docker network inspect ${NETWORK} || \
|
||||||
|
{ echo "ERROR: could not create network ${NETWORK}, exiting."; exit 1; }
|
||||||
|
done
|
||||||
|
|
||||||
test -f ~/openrc.sh || { echo "ERROR: ~/openrc.sh not found, exiting."; exit 1; }
|
test -f ~/openrc.sh || { echo "ERROR: ~/openrc.sh not found, exiting."; exit 1; }
|
||||||
source ~/openrc.sh
|
source ~/openrc.sh
|
||||||
INSTANCE=$(~/env_py3/bin/openstack server show -c id --format value $(hostname))
|
INSTANCE=$(~/env_py3/bin/openstack server show -c id --format value $(hostname))
|
||||||
|
Loading…
Reference in New Issue
Block a user