File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /usr/ bin/env bash
22
33set -eu
44set -o pipefail
@@ -14,15 +14,17 @@ if [[ ${DB:-empty} == "empty" ]]; then
1414 DB=mysql
1515fi
1616
17+ TAG=${TAG:- latest}
18+
1719CONTAINER_NAME=" $REPO_NAME -$DB -docker-container"
1820if [[ " ${DB} " == " mysql" ]] || [[ " ${DB} " == " mysql-8.0" ]]; then
19- IMAGE=" docker.io/cloudfoundry/tas-runtime-mysql-8.0"
21+ IMAGE=" docker.io/cloudfoundry/tas-runtime-mysql-8.0: ${TAG} "
2022 DB=" mysql"
2123elif [[ " ${DB} " == " mysql-5.7" ]]; then
22- IMAGE=" docker.io/cloudfoundry/tas-runtime-mysql-5.7"
24+ IMAGE=" docker.io/cloudfoundry/tas-runtime-mysql-5.7: ${TAG} "
2325 DB=" mysql"
2426elif [[ " ${DB} " == " postgres" ]]; then
25- IMAGE=" docker.io/cloudfoundry/tas-runtime-postgres"
27+ IMAGE=" docker.io/cloudfoundry/tas-runtime-postgres: ${TAG} "
2628else
2729 echo " Unsupported DB flavor"
2830 exit 1
@@ -47,4 +49,3 @@ docker run -it \
4749 ${ARGS} \
4850 " ${IMAGE} " \
4951 /bin/bash
50-
You can’t perform that action at this time.
0 commit comments