Skip to content

Commit 2e640a2

Browse files
authored
Merge pull request #144 from linuxserver/3.20
Rebase to 3.20
2 parents 0473cc3 + 1fb2b52 commit 2e640a2

File tree

7 files changed

+18
-27
lines changed

7 files changed

+18
-27
lines changed

.github/workflows/external_trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
echo "**** External trigger running off of master branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_MARIADB_MASTER\". ****"
2121
echo "External trigger running off of master branch. To disable this trigger, set a Github secret named \`PAUSE_EXTERNAL_TRIGGER_MARIADB_MASTER\`" >> $GITHUB_STEP_SUMMARY
2222
echo "**** Retrieving external version ****"
23-
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
23+
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2424
&& awk '/^P:'"mariadb"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://')
2525
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
2626
echo "**** Can't retrieve external version, exiting ****"
@@ -74,7 +74,7 @@ jobs:
7474
echo "**** Version ${EXT_RELEASE} already pushed, exiting ****"
7575
echo "Version ${EXT_RELEASE} already pushed, exiting" >> $GITHUB_STEP_SUMMARY
7676
exit 0
77-
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"mariadb"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
77+
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"mariadb"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
7878
echo "**** New version ${EXT_RELEASE} found; but not all arch repos updated yet; exiting ****"
7979
echo "New version ${EXT_RELEASE} found; but not all arch repos updated yet; exiting" >> $GITHUB_STEP_SUMMARY
8080
FAILURE_REASON="New version ${EXT_RELEASE} for mariadb tag latest is detected, however not all arch repos are updated yet. Will try again later."

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:3.19
3+
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
44

55
# set version label
66
ARG BUILD_DATE
@@ -16,7 +16,7 @@ ENV DATADIR=$MYSQL_DIR/databases
1616
RUN \
1717
echo "**** install runtime packages ****" && \
1818
if [ -z ${MARIADB_VERSION+x} ]; then \
19-
MARIADB_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
19+
MARIADB_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2020
&& awk '/^P:mariadb$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
2121
fi && \
2222
apk add --no-cache \
@@ -28,6 +28,7 @@ RUN \
2828
mariadb-server-utils==${MARIADB_VERSION} && \
2929
mkdir -p \
3030
/var/lib/mysql && \
31+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
3132
echo "**** cleanup ****" && \
3233
rm -rf \
3334
/tmp/* \

Dockerfile.aarch64

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19
3+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
44

55
# set version label
66
ARG BUILD_DATE
@@ -16,7 +16,7 @@ ENV DATADIR=$MYSQL_DIR/databases
1616
RUN \
1717
echo "**** install runtime packages ****" && \
1818
if [ -z ${MARIADB_VERSION+x} ]; then \
19-
MARIADB_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
19+
MARIADB_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2020
&& awk '/^P:mariadb$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
2121
fi && \
2222
apk add --no-cache \
@@ -28,6 +28,7 @@ RUN \
2828
mariadb-server-utils==${MARIADB_VERSION} && \
2929
mkdir -p \
3030
/var/lib/mysql && \
31+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
3132
echo "**** cleanup ****" && \
3233
rm -rf \
3334
/tmp/* \

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ pipeline {
2525
DEV_DOCKERHUB_IMAGE = 'lsiodev/mariadb'
2626
PR_DOCKERHUB_IMAGE = 'lspipepr/mariadb'
2727
DIST_IMAGE = 'alpine'
28-
DIST_TAG = '3.19'
29-
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.19/main/'
28+
DIST_TAG = '3.20'
29+
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.20/main/'
3030
DIST_REPO_PACKAGES = 'mariadb'
3131
MULTIARCH='true'
3232
CI='true'
@@ -35,7 +35,7 @@ pipeline {
3535
CI_SSL='false'
3636
CI_DELAY='30'
3737
CI_DOCKERENV='MYSQL_ROOT_PASSWORD=password'
38-
CI_AUTH='user:password'
38+
CI_AUTH=''
3939
CI_WEBPATH=''
4040
}
4141
stages {

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
347347

348348
## Versions
349349

350+
* **31.05.24:** - Rebase to Alpine 3.20.
350351
* **23.12.23:** - Rebase to Alpine 3.19.
351352
* **09.06.23:** - Update lc_messages path in shipped custom.cnf to match upstream.
352353
* **25.05.23:** - Rebase to Alpine 3.18, deprecate armhf.

jenkins-vars.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ external_type: alpine_repo
66
release_type: stable
77
release_tag: latest
88
ls_branch: master
9-
build_armhf: false
109
repo_vars:
1110
- BUILD_VERSION_ARG = 'MARIADB_VERSION'
1211
- LS_USER = 'linuxserver'
@@ -16,8 +15,8 @@ repo_vars:
1615
- DEV_DOCKERHUB_IMAGE = 'lsiodev/mariadb'
1716
- PR_DOCKERHUB_IMAGE = 'lspipepr/mariadb'
1817
- DIST_IMAGE = 'alpine'
19-
- DIST_TAG = '3.19'
20-
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.19/main/'
18+
- DIST_TAG = '3.20'
19+
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.20/main/'
2120
- DIST_REPO_PACKAGES = 'mariadb'
2221
- MULTIARCH='true'
2322
- CI='true'
@@ -26,5 +25,5 @@ repo_vars:
2625
- CI_SSL='false'
2726
- CI_DELAY='30'
2827
- CI_DOCKERENV='MYSQL_ROOT_PASSWORD=password'
29-
- CI_AUTH='user:password'
28+
- CI_AUTH=''
3029
- CI_WEBPATH=''

readme-vars.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,20 @@ available_architectures:
1313
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
1414
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
1515

16-
# development version
17-
development_versions: false
18-
development_versions_items:
19-
- { tag: "latest", desc: "Latest mariadb release with an Alpine base." }
20-
2116
# container parameters
2217
common_param_env_vars_enabled: true
2318
param_container_name: "{{ project_name }}"
24-
param_usage_include_net: false
19+
2520
param_usage_include_env: true
2621
param_env_vars:
2722
- { env_var: "MYSQL_ROOT_PASSWORD", env_value: "ROOT_ACCESS_PASSWORD", desc: "Set this to root password for installation (minimum 4 characters & non-alphanumeric passwords must be properly escaped)." }
28-
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London." }
23+
2924
param_usage_include_vols: true
3025
param_volumes:
3126
- { vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Persistent config files" }
3227
param_usage_include_ports: true
3328
param_ports:
3429
- { external_port: "3306", internal_port: "3306", port_desc: "Mariadb listens on this port." }
35-
param_device_map: false
36-
cap_add_param: false
3730

3831
# optional container parameters
3932
opt_param_usage_include_env: true
@@ -42,11 +35,6 @@ opt_param_env_vars:
4235
- { env_var: "MYSQL_USER", env_value: "MYSQL_USER", desc: "This user will have superuser access to the database specified by MYSQL_DATABASE (do not use root here)." }
4336
- { env_var: "MYSQL_PASSWORD", env_value: "DATABASE_PASSWORD", desc: "Set this to the password you want to use for you MYSQL_USER (minimum 4 characters & non-alphanumeric passwords must be properly escaped)." }
4437
- { env_var: "REMOTE_SQL", env_value: "http://URL1/your.sql,https://URL2/your.sql", desc: "Set this to ingest sql files from an http/https endpoint (comma seperated array)." }
45-
opt_param_usage_include_vols: false
46-
opt_param_usage_include_ports: false
47-
opt_param_device_map: false
48-
opt_cap_add_param: false
49-
optional_block_1: false
5038

5139
# application setup block
5240
app_setup_block_enabled: true
@@ -116,6 +104,7 @@ app_setup_block: |
116104
117105
# changelog
118106
changelogs:
107+
- { date: "31.05.24:", desc: "Rebase to Alpine 3.20."}
119108
- { date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
120109
- { date: "09.06.23:", desc: "Update lc_messages path in shipped custom.cnf to match upstream." }
121110
- { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }

0 commit comments

Comments
 (0)