Compare commits
2 commits
7e7895a618
...
a8d67a6653
Author | SHA1 | Date | |
---|---|---|---|
a8d67a6653 | |||
03b11af2fa |
3 changed files with 61 additions and 34 deletions
|
@ -1,59 +1,50 @@
|
||||||
FROM mediawiki:1.42.1
|
FROM mediawiki:1.42.1
|
||||||
|
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt install -y unzip wget clamav clamav-daemon
|
&& apt install -y unzip wget clamav clamav-daemon make
|
||||||
|
|
||||||
|
# Install extensions
|
||||||
|
WORKDIR /var/www/html/extensions
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
RUN git clone --depth 1 \
|
||||||
https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend \
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend
|
||||||
/var/www/html/extensions/MobileFrontend
|
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
RUN git clone --depth 1 \
|
||||||
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror \
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
|
||||||
/var/www/html/extensions/CodeMirror
|
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
RUN git clone --depth 1 \
|
||||||
https://gerrit.wikimedia.org/r/mediawiki/extensions/Elastica \
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/Elastica
|
||||||
/var/www/html/extensions/Elastica
|
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
RUN git clone --depth 1 \
|
||||||
https://gerrit.wikimedia.org/r/mediawiki/extensions/CirrusSearch \
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/CirrusSearch
|
||||||
/var/www/html/extensions/CirrusSearch
|
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
RUN git clone --depth 1 \
|
||||||
https://gerrit.wikimedia.org/r/mediawiki/extensions/AdvancedSearch \
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/AdvancedSearch
|
||||||
/var/www/html/extensions/AdvancedSearch
|
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
RUN git clone --depth 1 \
|
||||||
https://github.com/edwardspec/mediawiki-aws-s3.git \
|
https://github.com/edwardspec/mediawiki-aws-s3.git \
|
||||||
/var/www/html/extensions/AWS
|
/AWS
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
RUN git clone --depth 1 \
|
||||||
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscordRCFeed \
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscordRCFeed
|
||||||
/var/www/html/extensions/DiscordRCFeed
|
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
RUN git clone --depth 1 \
|
||||||
https://gerrit.wikimedia.org/r/mediawiki/extensions/DismissableSiteNotice \
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/DismissableSiteNotice
|
||||||
/var/www/html/extensions/DismissableSiteNotice
|
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
RUN git clone --depth 1 \
|
||||||
https://gerrit.wikimedia.org/r/mediawiki/extensions/cldr \
|
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
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
RUN git clone --depth 1 \
|
||||||
https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning \
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/CreateUserPage
|
||||||
/var/www/html/extensions/CookieWarning
|
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
RUN git clone --depth 1 \
|
||||||
https://gerrit.wikimedia.org/r/mediawiki/extensions/CreateUserPage \
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/Disambiguator
|
||||||
/var/www/html/extensions/CreateUserPage
|
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
RUN git clone --depth 1 \
|
||||||
https://gerrit.wikimedia.org/r/mediawiki/extensions/Disambiguator \
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
|
||||||
/var/www/html/extensions/Disambiguator
|
|
||||||
|
|
||||||
RUN git clone --depth 1 \
|
# Install skins and tarballed extensions
|
||||||
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups \
|
WORKDIR /var/www/html
|
||||||
/var/www/html/extensions/Popups
|
|
||||||
|
|
||||||
RUN wget https://github.com/StarCitizenTools/mediawiki-skins-Citizen/archive/main.zip \
|
RUN wget https://github.com/StarCitizenTools/mediawiki-skins-Citizen/archive/main.zip \
|
||||||
&& unzip main.zip \
|
&& unzip main.zip \
|
||||||
|
@ -67,11 +58,11 @@ RUN wget https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/arch
|
||||||
&& mv mediawiki-extensions-EmbedVideo-3.4.2/* /var/www/html/extensions/EmbedVideo \
|
&& mv mediawiki-extensions-EmbedVideo-3.4.2/* /var/www/html/extensions/EmbedVideo \
|
||||||
&& rm v3.4.2.tar.gz
|
&& rm v3.4.2.tar.gz
|
||||||
|
|
||||||
COPY CheckUser.tar.gz .
|
COPY *.tar.gz .
|
||||||
|
|
||||||
RUN tar -xvf CheckUser.tar.gz \
|
RUN for file in *.tar.gz; do \
|
||||||
&& mv CheckUser /var/www/html/extensions/CheckUser \
|
tar -xvf "$file" --directory /var/www/html/extensions/ && rm "$file"; \
|
||||||
&& rm CheckUser.tar.gz
|
done
|
||||||
|
|
||||||
# Install composer (AWS S3 & CheckUser extensions)
|
# Install composer (AWS S3 & CheckUser extensions)
|
||||||
RUN wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --quiet \
|
RUN wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --quiet \
|
||||||
|
@ -81,6 +72,6 @@ RUN mv /var/www/html/composer.local.json-sample /var/www/html/composer.local.jso
|
||||||
|
|
||||||
ENV COMPOSER_ALLOW_SUPERUSER=1
|
ENV COMPOSER_ALLOW_SUPERUSER=1
|
||||||
|
|
||||||
RUN cd /var/www/html && composer update && cd -
|
RUN composer update -d /var/www/html
|
||||||
|
|
||||||
RUN mkdir /var/log/mediawiki && chown www-data:www-data /var/log/mediawiki
|
RUN mkdir /var/log/mediawiki && chown www-data:www-data /var/log/mediawiki
|
||||||
|
|
BIN
mediawiki/SyntaxHighlight_GeSHi.tar.gz
Normal file
BIN
mediawiki/SyntaxHighlight_GeSHi.tar.gz
Normal file
Binary file not shown.
36
mediawiki/docker-compose.dev.yml
Normal file
36
mediawiki/docker-compose.dev.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
networks:
|
||||||
|
zenithwiki:
|
||||||
|
driver: bridge
|
||||||
|
|
||||||
|
services:
|
||||||
|
mediawiki:
|
||||||
|
image: www.coastalcommits.com/zenith/mediawiki:latest
|
||||||
|
build: .
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 8037:80
|
||||||
|
links:
|
||||||
|
- database
|
||||||
|
networks:
|
||||||
|
- zenithwiki
|
||||||
|
volumes:
|
||||||
|
- images:/var/www/html/images
|
||||||
|
- resources:/var/www/html/resources
|
||||||
|
- /var/lib/mediawiki/LocalSettings.php:/var/www/html/LocalSettings.php
|
||||||
|
database:
|
||||||
|
image: mariadb
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
MYSQL_DATABASE: zenith
|
||||||
|
MYSQL_USER: zenithwikiuser
|
||||||
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||||
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||||
|
networks:
|
||||||
|
- zenithwiki
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/mysql
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
images:
|
||||||
|
resources:
|
||||||
|
db:
|
Loading…
Reference in a new issue