Skip to content

Commit 37f0688

Browse files
committed
Allow for generating for a specific major version
Change-Id: I17f00459940609639575ff318a9fd8167a570295
1 parent c8d6535 commit 37f0688

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gen_dockerfiles.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ set -e
2222
source VERSION
2323

2424
REPO=https://repo.mysql.com; [ -n "$1" ] && REPO=$1
25+
MAJOR_VERSIONS=("${!MYSQL_CLUSTER_VERSIONS[@]}"); [ -n "$2" ] && MAJOR_VERSIONS=("${@:2}")
2526

26-
for MAJOR_VERSION in "${!MYSQL_CLUSTER_VERSIONS[@]}"; do
27+
for MAJOR_VERSION in "${MAJOR_VERSIONS[@]}"; do
2728
# Dockerfile
2829
sed 's#%%MYSQL_CLUSTER_PACKAGE%%#'"mysql-cluster-community-server-minimal-${MYSQL_CLUSTER_VERSIONS[${MAJOR_VERSION}]}"'#g' template/Dockerfile > tmpFile
2930
sed -i 's#%%MYSQL_SHELL_PACKAGE%%#'"mysql-shell-${MYSQL_SHELL_VERSIONS[${MAJOR_VERSION}]}"'#g' tmpFile

0 commit comments

Comments
 (0)