Skip to content

Commit

Permalink
All: upgrade alpine to 3.20, debian to bookworm, PHP to 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Sep 17, 2024
1 parent 7319d6f commit 4ffb8ac
Show file tree
Hide file tree
Showing 8 changed files with 140 additions and 106 deletions.
42 changes: 23 additions & 19 deletions adminer-dg/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,40 +1,44 @@
FROM alpine:3.14
FROM alpine:3.20

LABEL maintainer="Milan Sulc <[email protected]>"

ENV ADMINER_DG_VERION=1.28.1
ENV ADMINER_DG_VERION=2.0.0
ENV MEMORY=256M
ENV UPLOAD=2048M
ENV WORKERS=4
ENV PHP_CLI_SERVER_WORKERS=${WORKERS}

RUN echo '@community http://nl.alpinelinux.org/alpine/v3.14/community' >> /etc/apk/repositories && \
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.20/community' >> /etc/apk/repositories && \
apk update && \
apk upgrade && \
apk add \
wget \
ca-certificates \
php8@community \
php8-session@community \
php8-mysqli@community \
php8-pgsql@community \
php8-json@community \
php8-pecl-mongodb@community \
tini && \
wget \
ca-certificates \
php83@community \
php83-session@community \
php83-mysqli@community \
php83-pgsql@community \
php83-json@community \
php83-pecl-mongodb@community \
tini && \
wget https://github.com/dg/adminer-custom/archive/v$ADMINER_DG_VERION.tar.gz -O /srv/adminer.tgz && \
tar zxvf /srv/adminer.tgz --strip-components=1 -C /srv && \
rm /srv/adminer.tgz && \
ln -s /usr/bin/php8 /usr/bin/php && \
apk del wget ca-certificates && \
rm -rf /var/cache/apk/*

WORKDIR /srv
EXPOSE 80

ENTRYPOINT ["/sbin/tini", "--"]

CMD /usr/bin/php \
-d memory_limit=$MEMORY \
-d upload_max_filesize=$UPLOAD \
-d post_max_size=$UPLOAD \
-S 0.0.0.0:80
CMD [\
"/usr/bin/php", \
"-d", \
"memory_limit=${MEMORY}", \
"-d", \
"upload_max_filesize=${UPLOAD}", \
"-d", \
"post_max_size=${UPLOAD}", \
"-S", \
"0.0.0.0:80" \
]
34 changes: 19 additions & 15 deletions adminer-editor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.14
FROM alpine:3.20

LABEL maintainer="Milan Sulc <[email protected]>"

Expand All @@ -8,31 +8,35 @@ ENV UPLOAD=2048M
ENV WORKERS=4
ENV PHP_CLI_SERVER_WORKERS=${WORKERS}

RUN echo '@community http://nl.alpinelinux.org/alpine/v3.14/community' >> /etc/apk/repositories && \
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.20/community' >> /etc/apk/repositories && \
apk update && \
apk upgrade && \
apk add \
wget \
ca-certificates \
php8@community \
php8-session@community \
php8-mysqli@community \
php8-pgsql@community \
php8-json@community \
php8-pecl-mongodb@community \
php83-session@community \
php83-mysqli@community \
php83-pgsql@community \
php83-json@community \
php83-pecl-mongodb@community \
tini && \
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_EDITOR_VERSION/editor-$ADMINER_EDITOR_VERSION.php -O /srv/index.php && \
ln -s /usr/bin/php8 /usr/bin/php && \
ln -s /usr/bin/php83 /usr/bin/php && \
apk del wget ca-certificates && \
rm -rf /var/cache/apk/*

WORKDIR /srv
EXPOSE 80

ENTRYPOINT ["/sbin/tini", "--"]

CMD /usr/bin/php \
-d memory_limit=$MEMORY \
-d upload_max_filesize=$UPLOAD \
-d post_max_size=$UPLOAD \
-S 0.0.0.0:80
CMD [\
"/usr/bin/php", \
"-d", \
"memory_limit=${MEMORY}", \
"-d", \
"upload_max_filesize=${UPLOAD}", \
"-d", \
"post_max_size=${UPLOAD}", \
"-S", \
"0.0.0.0:80" \
]
32 changes: 18 additions & 14 deletions adminer-full/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.14
FROM alpine:3.20

LABEL maintainer="Milan Sulc <[email protected]>"

Expand All @@ -8,18 +8,17 @@ ENV UPLOAD=2048M
ENV WORKERS=4
ENV PHP_CLI_SERVER_WORKERS=${WORKERS}

RUN echo '@community http://nl.alpinelinux.org/alpine/v3.14/community' >> /etc/apk/repositories && \
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.20/community' >> /etc/apk/repositories && \
apk update && \
apk upgrade && \
apk add \
wget \
ca-certificates \
php8@community \
php8-session@community \
php8-mysqli@community \
php8-pgsql@community \
php8-json@community \
php8-pecl-mongodb@community \
php83-session@community \
php83-mysqli@community \
php83-pgsql@community \
php83-json@community \
php83-pecl-mongodb@community \
tini && \
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_VERSION/adminer-$ADMINER_VERSION.php -O /srv/index.php && \
ln -s /usr/bin/php8 /usr/bin/php && \
Expand All @@ -30,9 +29,14 @@ WORKDIR /srv
EXPOSE 80

ENTRYPOINT ["/sbin/tini", "--"]

CMD /usr/bin/php \
-d memory_limit=$MEMORY \
-d upload_max_filesize=$UPLOAD \
-d post_max_size=$UPLOAD \
-S 0.0.0.0:80
CMD [\
"/usr/bin/php", \
"-d", \
"memory_limit=${MEMORY}", \
"-d", \
"upload_max_filesize=${UPLOAD}", \
"-d", \
"post_max_size=${UPLOAD}", \
"-S", \
"0.0.0.0:80" \
]
28 changes: 16 additions & 12 deletions adminer-mongo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.14
FROM alpine:3.20

LABEL maintainer="Milan Sulc <[email protected]>"

Expand All @@ -8,28 +8,32 @@ ENV UPLOAD=2048M
ENV WORKERS=4
ENV PHP_CLI_SERVER_WORKERS=${WORKERS}

RUN echo '@community http://nl.alpinelinux.org/alpine/v3.14/community' >> /etc/apk/repositories && \
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.20/community' >> /etc/apk/repositories && \
apk update && \
apk upgrade && \
apk add \
wget \
ca-certificates \
php8@community \
php8-session@community \
php8-pecl-mongodb@community \
php83-session@community \
php83-pecl-mongodb@community \
tini && \
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_VERSION/adminer-$ADMINER_VERSION.php -O /srv/index.php && \
ln -s /usr/bin/php8 /usr/bin/php && \
ln -s /usr/bin/php83 /usr/bin/php && \
apk del wget ca-certificates && \
rm -rf /var/cache/apk/*

WORKDIR /srv
EXPOSE 80

ENTRYPOINT ["/sbin/tini", "--"]

CMD /usr/bin/php \
-d memory_limit=$MEMORY \
-d upload_max_filesize=$UPLOAD \
-d post_max_size=$UPLOAD \
-S 0.0.0.0:80
CMD [\
"/usr/bin/php", \
"-d", \
"memory_limit=${MEMORY}", \
"-d", \
"upload_max_filesize=${UPLOAD}", \
"-d", \
"post_max_size=${UPLOAD}", \
"-S", \
"0.0.0.0:80" \
]
28 changes: 16 additions & 12 deletions adminer-mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.14
FROM alpine:3.20

LABEL maintainer="Milan Sulc <[email protected]>"

Expand All @@ -8,28 +8,32 @@ ENV UPLOAD=2048M
ENV WORKERS=4
ENV PHP_CLI_SERVER_WORKERS=${WORKERS}

RUN echo '@community http://nl.alpinelinux.org/alpine/v3.14/community' >> /etc/apk/repositories && \
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.20/community' >> /etc/apk/repositories && \
apk update && \
apk upgrade && \
apk add \
wget \
ca-certificates \
php8@community \
php8-session@community \
php8-mysqli@community \
php83-session@community \
php83-mysqli@community \
tini && \
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_VERSION/adminer-$ADMINER_VERSION.php -O /srv/index.php && \
ln -s /usr/bin/php8 /usr/bin/php && \
ln -s /usr/bin/php83 /usr/bin/php && \
apk del wget ca-certificates && \
rm -rf /var/cache/apk/*

WORKDIR /srv
EXPOSE 80

ENTRYPOINT ["/sbin/tini", "--"]

CMD /usr/bin/php \
-d memory_limit=$MEMORY \
-d upload_max_filesize=$UPLOAD \
-d post_max_size=$UPLOAD \
-S 0.0.0.0:80
CMD [\
"/usr/bin/php", \
"-d", \
"memory_limit=${MEMORY}", \
"-d", \
"upload_max_filesize=${UPLOAD}", \
"-d", \
"post_max_size=${UPLOAD}", \
"-S", \
"0.0.0.0:80" \
]
27 changes: 16 additions & 11 deletions adminer-oracle-11/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM dockette/debian:buster
FROM dockette/debian:bullseye

LABEL maintainer="Milan Sulc <[email protected]>"

Expand All @@ -23,9 +23,9 @@ RUN apt-get update && \
unzip \
libaio1 \
ca-certificates \
php8.0 \
php8.0-dev \
php8.0-xml \
php8.3 \
php8.3-dev \
php8.3-xml \
php-pear \
tini && \
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_VERSION/adminer-$ADMINER_VERSION.php -O /srv/index.php
Expand All @@ -38,7 +38,7 @@ RUN wget https://github.com/f00b4r/oracle-instantclient/raw/master/instantclient
ln -s /usr/local/instantclient_11_2 /usr/local/instantclient && \
ln -s /usr/local/instantclient/libclntsh.so.11.1 /usr/local/instantclient/libclntsh.so && \
echo 'instantclient,/usr/local/instantclient' | pecl install oci8 && \
echo "extension=oci8.so" > /etc/php/8.0/cli/conf.d/00-oci8.ini
echo "extension=oci8.so" > /etc/php/8.3/cli/conf.d/00-oci8.ini

# CLEAN UP #####################################################################
RUN apt-get clean -y && \
Expand All @@ -51,9 +51,14 @@ WORKDIR /srv
EXPOSE 80

ENTRYPOINT ["/sbin/tini", "--"]

CMD /usr/bin/php \
-d memory_limit=$MEMORY \
-d upload_max_filesize=$UPLOAD \
-d post_max_size=$UPLOAD \
-S 0.0.0.0:80
CMD [\
"/usr/bin/php", \
"-d", \
"memory_limit=${MEMORY}", \
"-d", \
"upload_max_filesize=${UPLOAD}", \
"-d", \
"post_max_size=${UPLOAD}", \
"-S", \
"0.0.0.0:80" \
]
27 changes: 16 additions & 11 deletions adminer-oracle-12/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM dockette/debian:buster
FROM dockette/debian:bullseye

LABEL maintainer="Milan Sulc <[email protected]>"

Expand All @@ -23,9 +23,9 @@ RUN apt-get update && \
unzip \
libaio1 \
ca-certificates \
php8.0 \
php8.0-dev \
php8.0-xml \
php8.3 \
php8.3-dev \
php8.3-xml \
php-pear \
tini && \
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_VERSION/adminer-$ADMINER_VERSION.php -O /srv/index.php
Expand All @@ -38,7 +38,7 @@ RUN wget https://github.com/f00b4r/oracle-instantclient/raw/master/instantclient
ln -s /usr/local/instantclient_12_1 /usr/local/instantclient && \
ln -s /usr/local/instantclient/libclntsh.so.12.1 /usr/local/instantclient/libclntsh.so && \
echo 'instantclient,/usr/local/instantclient' | pecl install oci8 && \
echo "extension=oci8.so" > /etc/php/8.0/cli/conf.d/00-oci8.ini
echo "extension=oci8.so" > /etc/php/8.3/cli/conf.d/00-oci8.ini

# CLEAN UP #####################################################################
RUN apt-get clean -y && \
Expand All @@ -51,9 +51,14 @@ WORKDIR /srv
EXPOSE 80

ENTRYPOINT ["/sbin/tini", "--"]

CMD /usr/bin/php \
-d memory_limit=$MEMORY \
-d upload_max_filesize=$UPLOAD \
-d post_max_size=$UPLOAD \
-S 0.0.0.0:80
CMD [\
"/usr/bin/php", \
"-d", \
"memory_limit=${MEMORY}", \
"-d", \
"upload_max_filesize=${UPLOAD}", \
"-d", \
"post_max_size=${UPLOAD}", \
"-S", \
"0.0.0.0:80" \
]
Loading

0 comments on commit 4ffb8ac

Please sign in to comment.