Skip to content

Commit

Permalink
Hardcode version into entrypoint rather than rely on env
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed May 19, 2024
1 parent d68b27a commit 44ed2e2
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 30 deletions.
4 changes: 1 addition & 3 deletions 10.11/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
local mariaVersion="${MARIADB_VERSION##*:}"
mariaVersion="${mariaVersion%%[-+~]*}"
echo -n "${mariaVersion}-MariaDB"
echo -n "10.11.8-MariaDB"
}

# initializes the database directory
Expand Down
4 changes: 1 addition & 3 deletions 10.4/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
local mariaVersion="${MARIADB_VERSION##*:}"
mariaVersion="${mariaVersion%%[-+~]*}"
echo -n "${mariaVersion}-MariaDB"
echo -n "10.4.34-MariaDB"
}

# initializes the database directory
Expand Down
4 changes: 1 addition & 3 deletions 10.5/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
local mariaVersion="${MARIADB_VERSION##*:}"
mariaVersion="${mariaVersion%%[-+~]*}"
echo -n "${mariaVersion}-MariaDB"
echo -n "10.5.25-MariaDB"
}

# initializes the database directory
Expand Down
4 changes: 1 addition & 3 deletions 10.6/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
local mariaVersion="${MARIADB_VERSION##*:}"
mariaVersion="${mariaVersion%%[-+~]*}"
echo -n "${mariaVersion}-MariaDB"
echo -n "10.6.18-MariaDB"
}

# initializes the database directory
Expand Down
4 changes: 1 addition & 3 deletions 11.0/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
local mariaVersion="${MARIADB_VERSION##*:}"
mariaVersion="${mariaVersion%%[-+~]*}"
echo -n "${mariaVersion}-MariaDB"
echo -n "11.0.6-MariaDB"
}

# initializes the database directory
Expand Down
4 changes: 1 addition & 3 deletions 11.1/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
local mariaVersion="${MARIADB_VERSION##*:}"
mariaVersion="${mariaVersion%%[-+~]*}"
echo -n "${mariaVersion}-MariaDB"
echo -n "11.1.5-MariaDB"
}

# initializes the database directory
Expand Down
4 changes: 1 addition & 3 deletions 11.2/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
local mariaVersion="${MARIADB_VERSION##*:}"
mariaVersion="${mariaVersion%%[-+~]*}"
echo -n "${mariaVersion}-MariaDB"
echo -n "11.2.4-MariaDB"
}

# initializes the database directory
Expand Down
4 changes: 1 addition & 3 deletions 11.4/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
local mariaVersion="${MARIADB_VERSION##*:}"
mariaVersion="${mariaVersion%%[-+~]*}"
echo -n "${mariaVersion}-MariaDB"
echo -n "11.4.1-MariaDB"
}

# initializes the database directory
Expand Down
4 changes: 1 addition & 3 deletions 11.5/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
local mariaVersion="${MARIADB_VERSION##*:}"
mariaVersion="${mariaVersion%%[-+~]*}"
echo -n "${mariaVersion}-MariaDB"
echo -n "11.5.0-MariaDB"
}

# initializes the database directory
Expand Down
4 changes: 1 addition & 3 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
local mariaVersion="${MARIADB_VERSION##*:}"
mariaVersion="${mariaVersion%%[-+~]*}"
echo -n "${mariaVersion}-MariaDB"
echo -n "%%MARIADB_VERSION_BASIC%%-MariaDB"
}

# initializes the database directory
Expand Down
4 changes: 4 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ update_version()
-e 's!%%ARCHES%%! '"$arches"'!g' \
"$version/Dockerfile"

sed -i \
-e 's!%%MARIADB_VERSION_BASIC%%!'"$mariaVersion"'!g' \
"$version/docker-entrypoint.sh"

# Start using the new executable names
case "$version" in
10.4)
Expand Down

0 comments on commit 44ed2e2

Please sign in to comment.