restructured the dockerfile a bit and replaced the embedvideo extension with an updated fork
All checks were successful
Docker Build / Build and Push Images (push) Successful in 58s

This commit is contained in:
Seaswimmer 2024-07-31 20:33:49 -04:00
parent 1640a88acb
commit 0e0a33fba2
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -3,24 +3,10 @@ FROM mediawiki:1.42.1
RUN apt update \ RUN apt update \
&& apt install -y unzip wget && apt install -y unzip wget
# Install composer
RUN wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --quiet \
&& mv composer.phar /usr/local/bin/composer
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 git clone --depth 1 \ RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/p/mediawiki/extensions/MobileFrontend \ https://gerrit.wikimedia.org/r/p/mediawiki/extensions/MobileFrontend \
/var/www/html/extensions/MobileFrontend /var/www/html/extensions/MobileFrontend
RUN git clone --depth 1 \
https://gitlab.com/hydrawiki/extensions/EmbedVideo.git \
/var/www/html/extensions/EmbedVideo
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 /var/www/html/extensions/CodeMirror
@ -41,6 +27,22 @@ 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 /var/www/html/extensions/AWS
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
# Install composer
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 COPY composer.local.json /var/www/html/composer.local.json
RUN cd /var/www/html && composer update && cd - RUN cd /var/www/html && composer update && cd -