Skip to content

Commit

Permalink
php: Install wikidiff2 and luasandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Aug 1, 2024
1 parent e5989c3 commit 3630422
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-php-fpm.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Docker: php-fpm'

env:
TAG: '1.1.0'
TAG: '1.2.0'

on:
push:
Expand Down
19 changes: 12 additions & 7 deletions dockers/php-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,32 @@ RUN apt-get update && apt-get install -y \
git \
# Required for SyntaxHighlighting
python3 \
# Required for Scribunto when the machine is on aarch64 architecture
# Only 5.1.x is supported
# Reference: https://www.mediawiki.org/wiki/Extension:Scribunto#Additional_binaries
lua5.1 \
# CLI utilities
cron \
sudo \
# https://getcomposer.org/doc/00-intro.md#system-requirements
unzip
unzip \
;

# See https://caddyserver.com/docs/conventions#file-locations for details
ENV XDG_CONFIG_HOME /config
ENV XDG_DATA_HOME /data

# Install the PHP extensions we need
RUN docker-php-ext-install -j8 \
calendar \
intl \
mysqli \
opcache \
intl \
sockets \
calendar
;

ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN install-php-extensions \
# Required by Scribunto
luasandbox \
wikidiff2 \
;

# Install the default object cache
RUN pecl channel-update pecl.php.net
Expand Down
4 changes: 4 additions & 0 deletions dockers/php-fpm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

미디어위키 실행에 필요한 각종 PHP 디펜던시들을 설치한다.

## v1.2.0

- Add more php extensions: wikidiff2 and luasandbox

## v1.1.0

- Include Composer

0 comments on commit 3630422

Please sign in to comment.