Skip to content

Commit

Permalink
Hack 11.5/11.6 latest versions without API
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Aug 15, 2024
1 parent 0cb4378 commit b34b76e
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 25 deletions.
6 changes: 3 additions & 3 deletions 11.5-ubi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ COPY MariaDB.repo /etc/yum.repos.d/
# https://access.redhat.com/documentation/en-us/red_hat_software_certification/2024/html/red_hat_openshift_software_certification_policy_guide/assembly-requirements-for-container-images_openshift-sw-cert-policy-introduction#con-image-metadata-requirements_openshift-sw-cert-policy-container-images
LABEL name="MariaDB Server" \
vendor="MariaDB Community" \
version="11.5.1" \
version="11.5.2" \
release="Refer to Annotations org.opencontainers.image.{revision,source}" \
summary="MariaDB Database" \
description="MariaDB Database for relational SQL"
Expand All @@ -50,11 +50,11 @@ LABEL org.opencontainers.image.authors="MariaDB Community" \
org.opencontainers.image.licenses="GPL-2.0" \
org.opencontainers.image.source="https://github.com/MariaDB/mariadb-docker" \
org.opencontainers.image.vendor="MariaDB Community" \
org.opencontainers.image.version="11.5.1" \
org.opencontainers.image.version="11.5.2" \
org.opencontainers.image.url="https://github.com/MariaDB/mariadb-docker"

# bashbrew-architectures: amd64 arm64v8 ppc64le s390x
ARG MARIADB_VERSION=11.5.1
ARG MARIADB_VERSION=11.5.2
ENV MARIADB_VERSION=$MARIADB_VERSION
# release-status:Stable
# release-support-type:Short Term Support
Expand Down
2 changes: 1 addition & 1 deletion 11.5-ubi/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
echo -n "11.5.1-MariaDB"
echo -n "11.5.2-MariaDB"
}

# initializes the database directory
Expand Down
6 changes: 3 additions & 3 deletions 11.5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ LABEL org.opencontainers.image.authors="MariaDB Community" \
org.opencontainers.image.licenses="GPL-2.0" \
org.opencontainers.image.source="https://github.com/MariaDB/mariadb-docker" \
org.opencontainers.image.vendor="MariaDB Community" \
org.opencontainers.image.version="11.5.1" \
org.opencontainers.image.version="11.5.2" \
org.opencontainers.image.url="https://github.com/MariaDB/mariadb-docker"

# bashbrew-architectures: amd64 arm64v8 ppc64le s390x
ARG MARIADB_VERSION=1:11.5.1+maria~ubu2404
ARG MARIADB_VERSION=1:11.5.2+maria~ubu2404
ENV MARIADB_VERSION $MARIADB_VERSION
# release-status:Stable
# release-support-type:Short Term Support
# (https://downloads.mariadb.org/rest-api/mariadb/)

# Allowing overriding of REPOSITORY, a URL that includes suite and component for testing and Enterprise Versions
ARG REPOSITORY="http://archive.mariadb.org/mariadb-11.5.1/repo/ubuntu/ noble main main/debug"
ARG REPOSITORY="http://archive.mariadb.org/mariadb-11.5.2/repo/ubuntu/ noble main main/debug"

RUN set -e;\
echo "deb ${REPOSITORY}" > /etc/apt/sources.list.d/mariadb.list; \
Expand Down
2 changes: 1 addition & 1 deletion 11.5/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
echo -n "11.5.1-MariaDB"
echo -n "11.5.2-MariaDB"
}

# initializes the database directory
Expand Down
6 changes: 3 additions & 3 deletions 11.6-ubi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ COPY MariaDB.repo /etc/yum.repos.d/
# https://access.redhat.com/documentation/en-us/red_hat_software_certification/2024/html/red_hat_openshift_software_certification_policy_guide/assembly-requirements-for-container-images_openshift-sw-cert-policy-introduction#con-image-metadata-requirements_openshift-sw-cert-policy-container-images
LABEL name="MariaDB Server" \
vendor="MariaDB Community" \
version="11.6.0" \
version="11.6.1" \
release="Refer to Annotations org.opencontainers.image.{revision,source}" \
summary="MariaDB Database" \
description="MariaDB Database for relational SQL"
Expand All @@ -50,11 +50,11 @@ LABEL org.opencontainers.image.authors="MariaDB Community" \
org.opencontainers.image.licenses="GPL-2.0" \
org.opencontainers.image.source="https://github.com/MariaDB/mariadb-docker" \
org.opencontainers.image.vendor="MariaDB Community" \
org.opencontainers.image.version="11.6.0" \
org.opencontainers.image.version="11.6.1" \
org.opencontainers.image.url="https://github.com/MariaDB/mariadb-docker"

# bashbrew-architectures: amd64 arm64v8 ppc64le s390x
ARG MARIADB_VERSION=11.6.0
ARG MARIADB_VERSION=11.6.1
ENV MARIADB_VERSION=$MARIADB_VERSION
# release-status:RC
# release-support-type:Short Term Support
Expand Down
2 changes: 1 addition & 1 deletion 11.6-ubi/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
echo -n "11.6.0-MariaDB"
echo -n "11.6.1-MariaDB"
}

# initializes the database directory
Expand Down
6 changes: 3 additions & 3 deletions 11.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ LABEL org.opencontainers.image.authors="MariaDB Community" \
org.opencontainers.image.licenses="GPL-2.0" \
org.opencontainers.image.source="https://github.com/MariaDB/mariadb-docker" \
org.opencontainers.image.vendor="MariaDB Community" \
org.opencontainers.image.version="11.6.0" \
org.opencontainers.image.version="11.6.1" \
org.opencontainers.image.url="https://github.com/MariaDB/mariadb-docker"

# bashbrew-architectures: amd64 arm64v8 ppc64le s390x
ARG MARIADB_VERSION=1:11.6.0+maria~ubu2404
ARG MARIADB_VERSION=1:11.6.1+maria~ubu2404
ENV MARIADB_VERSION $MARIADB_VERSION
# release-status:RC
# release-support-type:Short Term Support
# (https://downloads.mariadb.org/rest-api/mariadb/)

# Allowing overriding of REPOSITORY, a URL that includes suite and component for testing and Enterprise Versions
ARG REPOSITORY="http://archive.mariadb.org/mariadb-11.6.0/repo/ubuntu/ noble main main/debug"
ARG REPOSITORY="http://archive.mariadb.org/mariadb-11.6.1/repo/ubuntu/ noble main main/debug"

RUN set -e;\
echo "deb ${REPOSITORY}" > /etc/apt/sources.list.d/mariadb.list; \
Expand Down
2 changes: 1 addition & 1 deletion 11.6/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ docker_create_db_directories() {
}

_mariadb_version() {
echo -n "11.6.0-MariaDB"
echo -n "11.6.1-MariaDB"
}

# initializes the database directory
Expand Down
11 changes: 10 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,16 @@ for version in "${versions[@]}"; do
if [ ! -d "$version" ]; then
version=${version%.[[:digit:]]*}
else
mariaversion
case "$version" in
11.5*)
mariaVersion=11.5.2
;;
11.6*)
mariaVersion=11.6.1
;;
*)
mariaversion
esac
fi
readarray -t release <<< "$(curl -fsSL "$DOWNLOADS_REST_API/mariadb/" \
| jq -r --arg version "${version%-*}" '.major_releases[] | select(.release_id == $version) | [ .release_status ] , [ .release_support_type ] | @tsv')"
Expand Down
16 changes: 8 additions & 8 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
},
"11.5": {
"milestone": "11.5",
"version": "11.5.1",
"fullVersion": "1:11.5.1+maria~ubu2404",
"version": "11.5.2",
"fullVersion": "1:11.5.2+maria~ubu2404",
"releaseStatus": "Stable",
"supportType": "Short Term Support",
"base": "ubuntu:noble",
Expand All @@ -127,8 +127,8 @@
},
"11.5-ubi": {
"milestone": "11.5",
"version": "11.5.1",
"fullVersion": "11.5.1",
"version": "11.5.2",
"fullVersion": "11.5.2",
"releaseStatus": "Stable",
"supportType": "Short Term Support",
"base": "ubi9",
Expand All @@ -141,8 +141,8 @@
},
"11.6": {
"milestone": "11.6",
"version": "11.6.0",
"fullVersion": "1:11.6.0+maria~ubu2404",
"version": "11.6.1",
"fullVersion": "1:11.6.1+maria~ubu2404",
"releaseStatus": "RC",
"supportType": "Short Term Support",
"base": "ubuntu:noble",
Expand All @@ -155,8 +155,8 @@
},
"11.6-ubi": {
"milestone": "11.6",
"version": "11.6.0",
"fullVersion": "11.6.0",
"version": "11.6.1",
"fullVersion": "11.6.1",
"releaseStatus": "RC",
"supportType": "Short Term Support",
"base": "ubi9",
Expand Down

0 comments on commit b34b76e

Please sign in to comment.