add skins

This commit is contained in:
Adrian Malacoda 2014-12-05 09:38:22 -06:00
parent f886a225e4
commit 41d4a49cdb
2 changed files with 15 additions and 0 deletions

View File

@ -34,6 +34,12 @@ RUN ./add_extension.sh Renameuser $MW_VERSION && \
./add_extension.sh Poem $MW_VERSION && \
./add_extension.sh PdfHandler $MW_VERSION
# Install skins
ADD add_skin.sh /add_skin.sh
RUN chmod +x add_skin.sh
RUN ./add_skin.sh Vector $MW_VERSION && \
./add_skin.sh MonoBook $MW_VERSION
# Create the section for persistent files
RUN mkdir /var/lib/mediawiki
RUN ln -s /var/lib/mediawiki/LocalSettings.php /app/LocalSettings.php

9
add_skin.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
EXT_NAME=$1
EXT_VERSION=$2
cd /app/skins
git clone https://git.wikimedia.org/git/mediawiki/skins/$1
cd $1
git checkout -b $2 origin/$2