add mariadb 10.3 for debian bookworm

This commit is contained in:
lookshe 2025-01-07 20:23:31 +01:00
parent bf385f2b42
commit 6d11f06eb5
4 changed files with 63 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
mariadb-10.3-bookworm/out/*

View file

@ -0,0 +1,37 @@
FROM docker.io/debian:bookworm as build-stage
RUN sed -i 's/Types: deb$/Types: deb deb-src/g' /etc/apt/sources.list.d/debian.sources
RUN apt-get update \
&& apt-get build-dep -y mariadb-server
RUN apt-get update \
&& apt-get install -y \
software-properties-common \
devscripts \
chrpath \
dh-apparmor \
libaio-dev \
libpcre3-dev \
wget
RUN wget http://ftp.de.debian.org/debian/pool/main/r/readline5/libreadline5_5.2+dfsg-3+b13_amd64.deb
RUN dpkg -i libreadline5_5.2+dfsg-3+b13_amd64.deb
RUN wget http://ftp.de.debian.org/debian/pool/main/r/readline5/libreadline-gplv2-dev_5.2+dfsg-3+b13_amd64.deb
RUN apt-get update \
&& apt-get install -y \
libreadline5
RUN dpkg -i libreadline-gplv2-dev_5.2+dfsg-3+b13_amd64.deb
RUN git clone https://github.com/MariaDB/server.git
RUN cd server \
&& echo checkout 10.3.39 \
&& git fetch \
&& git checkout mariadb-10.3.39
RUN cd server \
&& sed -i '118s/system/bundled/' cmake/build_configurations/mysql_release.cmake
RUN cd server \
&& sed -i '15s/GNUTLS/OPENSSL/' cmake/mariadb_connector_c.cmake
RUN cd server \
&& ./debian/autobake-deb.sh
FROM scratch
COPY --from=build-stage /*.deb .

View file

@ -0,0 +1,25 @@
## MariaDB 10.3 for Debian Bookworm
Build latest tag of MariaDB 10.3 for Debian Bookworm.
### Build
Build is done inside Debian Bookworm docker with
```
DOCKER_BUILDKIT=1 podman build --output out .
```
### Upload installation files in repository
Upload the .deb files to repository with
```
export REPO_TOKEN=xyz
export USERNAME=lookshe
for DEB in $(ls out/*.deb)
do
curl -H "Authorization: token $REPO_TOKEN" \
--upload-file "$DEB" \
"https://git.fucktheforce.de/api/packages/$USERNAME/debian/pool/bookworm/main/upload"
done
```

View file