MediaWiki/mediawiki/Dockerfile
Seaswimmer f1577cd764
Some checks failed
Docker Build / Build and Push Images (push) Failing after 18s
install CheckUser from ExtensionDistributor instead of git
2024-08-01 14:13:33 -04:00

82 lines
3 KiB
Docker

FROM mediawiki:1.42.1
RUN apt update \
&& apt install -y unzip wget clamav clamav-daemon
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend \
/var/www/html/extensions/MobileFrontend
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror \
/var/www/html/extensions/CodeMirror
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/Elastica \
/var/www/html/extensions/Elastica
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/CirrusSearch \
/var/www/html/extensions/CirrusSearch
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/AdvancedSearch \
/var/www/html/extensions/AdvancedSearch
RUN git clone --depth 1 \
https://github.com/edwardspec/mediawiki-aws-s3.git \
/var/www/html/extensions/AWS
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscordRCFeed \
/var/www/html/extensions/DiscordRCFeed
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/DismissableSiteNotice \
/var/www/html/extensions/DismissableSiteNotice
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/cldr \
/var/www/html/extensions/cldr
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning \
/var/www/html/extensions/CookieWarning
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/CreateUserPage \
/var/www/html/extensions/CreateUserPage
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/Disambiguator \
/var/www/html/extensions/Disambiguator
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups \
/var/www/html/extensions/Popups
RUN wget https://github.com/StarCitizenTools/mediawiki-skins-Citizen/archive/main.zip \
&& unzip main.zip \
&& mkdir -p /var/www/html/skins/Citizen \
&& mv mediawiki-skins-Citizen-main/* /var/www/html/skins/Citizen \
&& rm main.zip
RUN wget https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/archive/refs/tags/v3.4.2.tar.gz \
&& tar -xvf v3.4.2.tar.gz \
&& mkdir -p /var/www/html/extensions/EmbedVideo \
&& mv mediawiki-extensions-EmbedVideo-3.4.2/* /var/www/html/extensions/EmbedVideo \
&& rm v3.4.2.tar.gz
RUN wget https://www.mediawiki.org/wiki/Special:ExtensionDistributor/CheckUser \
&& tar -xvf CheckUser \
&& mkdir -p /var/www/html/extensions/CheckUser \
&& mv CheckUser/* /var/www/html/extensions/CheckUser \
&& rm CheckUser
# Install composer (AWS S3 extension)
RUN wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --quiet \
&& mv composer.phar /usr/local/bin/composer
COPY composer.local.json /var/www/html/composer.local.json
RUN cd /var/www/html && composer update && cd -