add latest mariadb 10.3 for wheezy

This commit is contained in:
lookshe 2021-01-17 22:39:01 +01:00
parent 5524b3dc0c
commit dc3bcf0351
29 changed files with 43 additions and 0 deletions

18
mariadb-10.3/README.md Normal file
View file

@ -0,0 +1,18 @@
## MariaDB 10.3 for Debian Wheezy
Build latest tag of MariaDB 10.3 for Debian Wheezy.
### Build
Build is done inside Debian Wheezy docker with
```
DOCKER_BUILDKIT=1 docker build --file build.Dockerfile --tag lookshe/mariadb-10.3-build .
```
### Get installation files
To copy the .deb files out of build container run
```
DOCKER_BUILDKIT=1 docker build --file copy.Dockerfile --output out .
```

View file

@ -0,0 +1,20 @@
FROM debian/eol:wheezy
RUN apt-get update \
&& apt-get install -y \
software-properties-common \
devscripts
RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 CBCB082A1BB943DB
RUN echo "deb http://mirror2.hs-esslingen.de/mariadb/repo/10.3/debian wheezy main" >> /etc/apt/sources.list
RUN echo "deb-src http://mirror2.hs-esslingen.de/mariadb/repo/10.3/debian wheezy main" >> /etc/apt/sources.list
RUN apt-get update \
&& apt-get build-dep -y mariadb-server-10.3
RUN git clone https://github.com/MariaDB/server.git
RUN cd server \
&& git checkout mariadb-10.3.27
RUN apt-get update \
&& apt-get install -y \
dh-exec
RUN cd server \
&& ./debian/autobake-deb.sh

View file

@ -0,0 +1,5 @@
FROM lookshe/mariadb-10.3-build AS build-stage
FROM scratch AS export-stage
COPY --from=build-stage /*.deb .