diff --git a/Dockerfile b/Dockerfile index 4ad1232..e6fe455 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,21 @@ RUN apt update && apt install --yes wget gpg \ && echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | tee /etc/apt/sources.list.d/elastic-8.x.list \ && apt update && apt install elasticsearch +# download extensions +RUN apt install wget \ + && wget -P /tmp/mediawiki_extensions https://extdist.wmflabs.org/dist/extensions/AdvancedSearch-REL1_39-6533553.tar.gz \ + && wget -P /tmp/mediawiki_extensions https://extdist.wmflabs.org/dist/extensions/CirrusSearch-REL1_39-da1a983.tar.gz \ + && wget -P /tmp/mediawiki_extensions https://extdist.wmflabs.org/dist/extensions/DynamicSidebar-REL1_39-b1e2d2a.tar.gz \ + && wget -P /tmp/mediawiki_extensions https://extdist.wmflabs.org/dist/extensions/Elastica-REL1_39-aa4dc98.tar.gz \ + && wget -P /tmp/mediawiki_extensions https://extdist.wmflabs.org/dist/extensions/MobileFrontend-REL1_39-cb0009c.tar.gz \ + && wget -P /tmp/mediawiki_extensions https://extdist.wmflabs.org/dist/extensions/Mpdf-REL1_39-1a6bb53.tar.gz \ + && wget -P /tmp/mediawiki_extensions https://extdist.wmflabs.org/dist/extensions/Popups-REL1_39-6c06284.tar.gz \ + && wget -P /tmp/mediawiki_extensions https://extdist.wmflabs.org/dist/extensions/TimedMediaHandler-REL1_39-9a51d8e.tar.gz \ + && wget -P /tmp/mediawiki_extensions https://extdist.wmflabs.org/dist/extensions/UserFunctions-REL1_39-5414085.tar.gz + RUN find /tmp/mediawiki_extensions -name "*.tar.gz" -exec sh -c 'tar -xzf {} -C /var/www/html/extensions' \; \ && find /tmp/mediawiki_skins -name "*.tar.gz" -exec sh -c 'tar -xzf {} -C /var/www/html/skins' \; \ && find /tmp/mediawiki_override -type f -exec php /tmp/scripts/config_placeholder_replace.php "/tmp/config.json" "{}" \; \ && cp -R /tmp/mediawiki_override/* /var/www/html \ && chown www-data:www-data /var/www/html/extensions/ -R \ - && rm -R /tmp/* \ No newline at end of file + && rm -R /tmp/* diff --git a/build/mediawiki_extensions/AdvancedSearch.tar.gz b/build/mediawiki_extensions/AdvancedSearch.tar.gz deleted file mode 100644 index af08515..0000000 Binary files a/build/mediawiki_extensions/AdvancedSearch.tar.gz and /dev/null differ diff --git a/build/mediawiki_extensions/CirrusSearch.tar.gz b/build/mediawiki_extensions/CirrusSearch.tar.gz deleted file mode 100644 index 0eb0468..0000000 Binary files a/build/mediawiki_extensions/CirrusSearch.tar.gz and /dev/null differ diff --git a/build/mediawiki_extensions/DynamicSidebar.tar.gz b/build/mediawiki_extensions/DynamicSidebar.tar.gz deleted file mode 100644 index 4cf686b..0000000 Binary files a/build/mediawiki_extensions/DynamicSidebar.tar.gz and /dev/null differ diff --git a/build/mediawiki_extensions/Elastica.tar.gz b/build/mediawiki_extensions/Elastica.tar.gz deleted file mode 100644 index 6ec3a46..0000000 Binary files a/build/mediawiki_extensions/Elastica.tar.gz and /dev/null differ diff --git a/build/mediawiki_extensions/MobileFrontend.tar.gz b/build/mediawiki_extensions/MobileFrontend.tar.gz deleted file mode 100644 index 0f0261f..0000000 Binary files a/build/mediawiki_extensions/MobileFrontend.tar.gz and /dev/null differ diff --git a/build/mediawiki_extensions/Mpdf.tar.gz b/build/mediawiki_extensions/Mpdf.tar.gz deleted file mode 100644 index a69f9ee..0000000 Binary files a/build/mediawiki_extensions/Mpdf.tar.gz and /dev/null differ diff --git a/build/mediawiki_extensions/PageImages.tar.gz b/build/mediawiki_extensions/PageImages.tar.gz deleted file mode 100644 index 3024d90..0000000 Binary files a/build/mediawiki_extensions/PageImages.tar.gz and /dev/null differ diff --git a/build/mediawiki_extensions/Popups.tar.gz b/build/mediawiki_extensions/Popups.tar.gz deleted file mode 100644 index eb60387..0000000 Binary files a/build/mediawiki_extensions/Popups.tar.gz and /dev/null differ diff --git a/build/mediawiki_extensions/TextExtracts.tar.gz b/build/mediawiki_extensions/TextExtracts.tar.gz deleted file mode 100644 index 5609fbb..0000000 Binary files a/build/mediawiki_extensions/TextExtracts.tar.gz and /dev/null differ diff --git a/build/mediawiki_extensions/TimedMediaHandler.tar.gz b/build/mediawiki_extensions/TimedMediaHandler.tar.gz deleted file mode 100644 index 31f7709..0000000 Binary files a/build/mediawiki_extensions/TimedMediaHandler.tar.gz and /dev/null differ diff --git a/build/mediawiki_extensions/UserFunctions.tar.gz b/build/mediawiki_extensions/UserFunctions.tar.gz deleted file mode 100644 index 593b46e..0000000 Binary files a/build/mediawiki_extensions/UserFunctions.tar.gz and /dev/null differ