Skip to content

Commit

Permalink
Update mediawiki to 1.43.0 and PHP 8.3
Browse files Browse the repository at this point in the history
Also removed PageInCat extension as it is deprecated
  • Loading branch information
xcompass committed Feb 6, 2025
1 parent b63f4c7 commit d27a172
Showing 1 changed file with 7 additions and 26 deletions.
33 changes: 7 additions & 26 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
FROM php:7.4-apache
FROM php:8.3-apache

ENV WIKI_VERSION_MAJOR_MINOR=1.39
ENV WIKI_VERSION_BUGFIX=11
ENV WIKI_VERSION_MAJOR_MINOR=1.43
ENV WIKI_VERSION_BUGFIX=0
ENV WIKI_VERSION=$WIKI_VERSION_MAJOR_MINOR.$WIKI_VERSION_BUGFIX
ENV WIKI_VERSION_STR=1_39
ENV WIKI_VERSION_STR=1_43

RUN apt-get update && apt-get install -y --no-install-recommends \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libmagickwand-dev \
libicu-dev \
libldap2-dev \
libldap-2.4-2 \
libldap-dev \
libldap-common \
netcat \
netcat-traditional \
git \
imagemagick \
unzip \
Expand Down Expand Up @@ -63,7 +62,7 @@ RUN curl -L https://getcomposer.org/installer | php \
&& php composer.phar install --no-dev

RUN EXTS=`curl https://extdist.wmflabs.org/dist/extensions/ | awk 'BEGIN { FS = "\"" } ; {print $2}'` \
&& for i in SmiteSpam VisualEditor Scribunto LiquidThreads Cite WikiEditor LDAPProvider PluggableAuth LDAPAuthentication2 ParserFunctions TemplateData InputBox Widgets Variables RightFunctions PageInCat CategoryTree LabeledSectionTransclusion UserPageEditProtection Quiz Collection DeleteBatch LinkTarget HitCounters Math 3D MultimediaViewer TimedMediaHandler SimpleSAMLphp; do \
&& for i in SmiteSpam VisualEditor Scribunto LiquidThreads Cite WikiEditor LDAPProvider PluggableAuth LDAPAuthentication2 ParserFunctions TemplateData InputBox Widgets Variables RightFunctions CategoryTree LabeledSectionTransclusion UserPageEditProtection Quiz Collection DeleteBatch LinkTarget HitCounters Math 3D MultimediaViewer TimedMediaHandler SimpleSAMLphp; do \
FILENAME=`echo "$EXTS" | grep ^${i}-REL${WIKI_VERSION_STR}`; \
echo "Installing https://extdist.wmflabs.org/dist/extensions/$FILENAME"; \
curl -Ls https://extdist.wmflabs.org/dist/extensions/$FILENAME | tar xz -C /var/www/html/extensions; \
Expand Down Expand Up @@ -108,24 +107,6 @@ RUN EXTS=`curl https://extdist.wmflabs.org/dist/extensions/ | awk 'BEGIN { FS =
# WARNING: Below fix is only for DynamicPageList3 3.5.1
# Patch to fix Math Exam Resources DPL
COPY ./extensions/DynamicPageList/includes/Query.php /var/www/html/extensions/DynamicPageList/includes/Query.php
# TODO: Remove if >REL1_40, as this is a backport from Vector REL1_40
# Add login button next to "..." menu in top-right corner
COPY skins/Vector/includes/Hooks.php /var/www/html/skins/Vector/includes/Hooks.php
COPY skins/Vector/includes/SkinVector.php /var/www/html/skins/Vector/includes/SkinVector.php
# TODO: Also remove on upgrade, this is a Vector customization to make the main
# menu behave more like current Wikipedia (dropdown over the page)
COPY skins/Vector/resources/skins.vector.styles/components/Sidebar.less \
/var/www/html/skins/Vector/resources/skins.vector.styles/components/Sidebar.less
COPY skins/Vector/resources/skins.vector.styles/components/TableOfContents.less \
/var/www/html/skins/Vector/resources/skins.vector.styles/components/TableOfContents.less
COPY skins/Vector/resources/skins.vector.styles/layouts/screen.less \
/var/www/html/skins/Vector/resources/skins.vector.styles/layouts/screen.less
COPY skins/Vector/includes/templates/Sidebar.mustache \
/var/www/html/skins/Vector/includes/templates/Sidebar.mustache
COPY skins/Vector/includes/templates/skin.mustache \
/var/www/html/skins/Vector/includes/templates/skin.mustache
COPY skins/Vector/resources/skins.vector.styles/components/MenuTabs.less \
/var/www/html/skins/Vector/resources/skins.vector.styles/components/MenuTabs.less

# composer.local.json merges in composer.json from caliper extension, so we
# need to run composer update after getting the extensions.
Expand Down

0 comments on commit d27a172

Please sign in to comment.