Skip to content

Commit 77eb569

Browse files
authored
Merge pull request #139 from linuxserver/3.19
Rebase to Alpine 3.19
2 parents 9630e54 + 3da9ec5 commit 77eb569

File tree

7 files changed

+16
-14
lines changed

7 files changed

+16
-14
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.18/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
23+
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/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.18/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.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
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: 2 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.18
3+
FROM ghcr.io/linuxserver/baseimage-alpine:3.19
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.18/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
19+
MARIADB_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/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 \

Dockerfile.aarch64

Lines changed: 2 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.18
3+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19
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.18/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
19+
MARIADB_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/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 \

Jenkinsfile

Lines changed: 2 additions & 2 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.18'
29-
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.18/main/'
28+
DIST_TAG = '3.19'
29+
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.19/main/'
3030
DIST_REPO_PACKAGES = 'mariadb'
3131
MULTIARCH='true'
3232
CI='true'

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ services:
144144
- MYSQL_PASSWORD=DATABASE_PASSWORD #optional
145145
- REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql #optional
146146
volumes:
147-
- path_to_data:/config
147+
- /path/to/mariadb/config:/config
148148
ports:
149149
- 3306:3306
150150
restart: unless-stopped
@@ -164,7 +164,7 @@ docker run -d \
164164
-e MYSQL_PASSWORD=DATABASE_PASSWORD `#optional` \
165165
-e REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql `#optional` \
166166
-p 3306:3306 \
167-
-v path_to_data:/config \
167+
-v /path/to/mariadb/config:/config \
168168
--restart unless-stopped \
169169
lscr.io/linuxserver/mariadb:latest
170170
```
@@ -184,7 +184,7 @@ Containers are configured using parameters passed at runtime (such as those abov
184184
| `-e MYSQL_USER=MYSQL_USER` | This user will have superuser access to the database specified by MYSQL_DATABASE (do not use root here). |
185185
| `-e MYSQL_PASSWORD=DATABASE_PASSWORD` | Set this to the password you want to use for you MYSQL_USER (minimum 4 characters & non-alphanumeric passwords must be properly escaped). |
186186
| `-e REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql` | Set this to ingest sql files from an http/https endpoint (comma seperated array). |
187-
| `-v /config` | Contains the db itself and all assorted settings. |
187+
| `-v /config` | Persistent config files |
188188

189189
## Environment variables from files (Docker secrets)
190190

@@ -347,6 +347,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
347347

348348
## Versions
349349

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

jenkins-vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ repo_vars:
1616
- DEV_DOCKERHUB_IMAGE = 'lsiodev/mariadb'
1717
- PR_DOCKERHUB_IMAGE = 'lspipepr/mariadb'
1818
- DIST_IMAGE = 'alpine'
19-
- DIST_TAG = '3.18'
20-
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.18/main/'
19+
- DIST_TAG = '3.19'
20+
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.19/main/'
2121
- DIST_REPO_PACKAGES = 'mariadb'
2222
- MULTIARCH='true'
2323
- CI='true'

readme-vars.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ param_env_vars:
2828
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London." }
2929
param_usage_include_vols: true
3030
param_volumes:
31-
- { vol_path: "/config", vol_host_path: "path_to_data", desc: "Contains the db itself and all assorted settings." }
31+
- { vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Persistent config files" }
3232
param_usage_include_ports: true
3333
param_ports:
3434
- { external_port: "3306", internal_port: "3306", port_desc: "Mariadb listens on this port." }
@@ -116,6 +116,7 @@ app_setup_block: |
116116
117117
# changelog
118118
changelogs:
119+
- { date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
119120
- { date: "09.06.23:", desc: "Update lc_messages path in shipped custom.cnf to match upstream." }
120121
- { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
121122
- { date: "04.02.23:", desc: "Minor updates to defaults in custom.cnf." }

0 commit comments

Comments
 (0)