Skip to content

Commit ff289e2

Browse files
committed
chore: bump bookworm and jobrunner images
Also consolidate the custom dockerfiles into one file per container.
1 parent 00294ff commit ff289e2

8 files changed

Lines changed: 29 additions & 75 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
mediawiki:
3-
image: docker-registry.wikimedia.org/dev/bookworm-php83-fpm:1.0.0
3+
image: docker-registry.wikimedia.org/dev/bookworm-php83-fpm:1.0.0-s1
44
user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
55
extra_hosts:
66
- "host.docker.internal:host-gateway"
@@ -28,7 +28,7 @@ services:
2828
env_file: config/.env
2929
networks: [ mw ]
3030
mediawiki-jobrunner:
31-
image: docker-registry.wikimedia.org/dev/bookworm-php83-jobrunner:1.0.0
31+
image: docker-registry.wikimedia.org/dev/bookworm-php83-jobrunner:1.0.0-s1
3232
user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
3333
volumes:
3434
- "./core:${MW_INSTALL_PATH}:cached"
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
FROM docker-registry.wikimedia.org/dev/bookworm-php83-fpm:1.0.0 AS build
1+
FROM docker-registry.wikimedia.org/dev/bookworm-php83-fpm:1.0.0-s1 AS build
22

3+
# Compile LuaSandbox from source
34
WORKDIR /src
45
RUN git clone https://gerrit.wikimedia.org/r/mediawiki/php/luasandbox
56
RUN apt update && apt install php8.3-dev liblua5.1-0-dev -y
67
RUN cd luasandbox && phpize && ./configure && make
78

8-
FROM docker-registry.wikimedia.org/dev/bookworm-php83-fpm:1.0.0
9+
FROM docker-registry.wikimedia.org/dev/bookworm-php83-fpm:1.0.0-s1
910

11+
# Install LuaSandbox
12+
RUN apt update && apt install liblua5.1-0 -y
1013
COPY --from=build /src/luasandbox/modules/luasandbox.so /usr/lib/php/20230831/luasandbox.so
1114
RUN echo 'extension=luasandbox.so' > /etc/php/8.3/mods-available/luasandbox.ini && phpenmod luasandbox
15+
16+
# Install Excimer
17+
RUN apt-get update && \
18+
apt-get install php8.3-excimer
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM docker-registry.wikimedia.org/dev/bookworm-php83-jobrunner:1.0.0-s1 as build
2+
3+
# Compile LuaSandbox from source
4+
WORKDIR /src
5+
RUN git clone https://gerrit.wikimedia.org/r/mediawiki/php/luasandbox
6+
RUN apt update && apt install php8.3-dev liblua5.1-0-dev -y
7+
RUN cd luasandbox && phpize && ./configure && make
8+
9+
FROM docker-registry.wikimedia.org/dev/bookworm-php83-jobrunner:1.0.0-s1
10+
11+
# Install LuaSandbox
12+
RUN apt update && apt install liblua5.1-0 -y
13+
COPY --from=build /src/luasandbox/modules/luasandbox.so /usr/lib/php/20230831/luasandbox.so
14+
RUN echo 'extension=luasandbox.so' > /etc/php/8.3/mods-available/luasandbox.ini && phpenmod luasandbox
15+
16+
# Install Excimer
17+
RUN apt-get update && \
18+
apt-get install php8.3-excimer

features/luasandbox/luasandbox.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

features/profiling/profiling.Dockerfile

Lines changed: 0 additions & 4 deletions
This file was deleted.

features/profiling/profiling.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

features/sul3/sul3.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)