Don't parse empty strings.
Signed-off-by: Chad Metcalf <chad@docker.com>
This commit is contained in:
parent
c600fc36ca
commit
d8a95fadd8
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,8 @@ function teardown_file() {
|
|||||||
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
# assumes format 22/tcp, 0.0.0.0:3000->3000/tcp
|
||||||
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
ports_string=$(docker ps --filter="ID=${service}" --format "{{.Ports}}")
|
||||||
|
|
||||||
|
if [[ ! -z ${ports_string} ]]; then
|
||||||
|
|
||||||
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
OIFS=${IFS}; IFS=','; service_port=("$ports_string"); IFS=${OIFS}; unset OIFS;
|
||||||
|
|
||||||
for i in "${service_port[@]}"; do
|
for i in "${service_port[@]}"; do
|
||||||
@ -57,5 +59,7 @@ function teardown_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user