17 Commits
master ... main

Author SHA1 Message Date
e6d86c5959 no php config (?) 2021-09-08 15:47:41 -07:00
48395d2fdf update container name 2021-09-08 15:34:59 -07:00
dba8cd8057 fix container name 2021-08-20 13:56:59 -07:00
4f45d78e35 update charlesreid1-config submodule 2020-08-18 23:22:41 -07:00
a0de3d7f74 update charlesreid1-config submodule 2020-07-26 15:41:47 -07:00
3cf92466f8 update charlesreid1-config submodule 2020-07-22 23:23:56 -07:00
05db973b08 no more building math extension in d-mediawiki dockerfile 2020-07-22 23:23:09 -07:00
156cec7533 fix permissions issue with extensions dir 2020-07-09 10:23:23 -07:00
2e1865a8ab update LocalSettings in charlesreid1-config submodule 2020-07-09 10:23:14 -07:00
bbebaf8720 bump charlesreid1-config submodule 2020-07-09 10:13:14 -07:00
9f288beec2 fix typo in d-mediawiki Dockerfile 2020-07-09 10:11:25 -07:00
4ae71bb4c9 add script to update extensions dir 2020-07-09 10:11:08 -07:00
9876f43eff add /var/log/mwf2b in mediawiki container 2020-06-25 01:19:54 -07:00
20d66c0c28 mw-fail2ban log file 2020-06-25 00:55:47 -07:00
898682bebc more new charlesreid1-config commits 2020-06-21 13:36:28 -07:00
1f78aa8377 bump charlesreid1-config to include fail2banlog 2020-06-21 13:11:01 -07:00
800909557c update charlesreid1-config submodule to latest 2020-05-21 18:11:13 -07:00
5 changed files with 38 additions and 9 deletions

View File

@@ -47,14 +47,16 @@ COPY charlesreid1-config/mediawiki/LocalSettings.php /var/www/html/LocalSettings
RUN chown -R www-data:www-data /var/www/html/LocalSettings*
RUN chmod 600 /var/www/html/LocalSettings.php
# MediaWiki Fail2ban log directory
RUN mkdir -p /var/log/mwf2b
RUN chown -R www-data:www-data /var/log/mwf2b
RUN chmod 700 /var/log/mwf2b
# Apache conf file
COPY charlesreid1-config/apache/*.conf /etc/apache2/sites-enabled/
RUN a2enmod rewrite
RUN service apache2 restart
# PHP conf file
# https://hub.docker.com/_/php/
#COPY config/php.ini /usr/local/etc/php/
# make texvc
CMD cd /var/www/html/extensions/Math/math && make && apache2-foreground
## make texvc
#CMD cd /var/www/html/extensions/Math && make && apache2-foreground
CMD apache2-foreground

View File

@@ -9,7 +9,7 @@
# just to update LocalSettings.php when it changes, we just
# use a docker cp command to copy it into the container.
NAME="pod-charlesreid1_stormy_mw_1"
NAME="stormy_mw"
echo "Installing LocalSettings.php into $NAME"
docker cp charlesreid1-config/mediawiki/LocalSettings.php $NAME:/var/www/html/LocalSettings.php
docker exec -it $NAME /bin/bash -c "chown www-data:www-data /var/www/html/LocalSettings.php"

27
fix_extensions_dir.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
#
# fix extensions dir in the mediawiki container
#
# in theory, we should be able to update the
# extensions folder in d-mediawiki/charlesreid1-config,
# but in reality this falls on its face.
# So, we have to fix the fucking extensions directory
# ourselves.
set -e
NAME="stormy_mw"
EXTENSIONS="SyntaxHighlight_GeSHi ParserFunctions EmbedVideo Math Fail2banlog"
echo "Replacing existing versions of MediaWiki extensions..."
for EXTENSION in $EXTENSIONS; do
#echo "Removing old extension ${EXTENSION} from /var/www/html/extensions"
#docker exec -it $NAME /bin/bash -c "mv /var/www/html/extensions/${EXTENSION} /var/www/html/extensions/_${EXTENSION}"
#echo "Copying new extension ${EXTENSION} from d-mediawiki/charlesreid1-config/mediawiki/extensions"
#docker cp charlesreid1-config/mediawiki/extensions/${EXTENSION} ${NAME}:/var/www/html/extensions
echo "Fixing permissions on ${EXTENSION}"
docker exec -it $NAME /bin/bash -c "chown www-data:www-data /var/www/html/extensions/${EXTENSION}"
docker exec -it $NAME /bin/bash -c "chmod 755 /var/www/html/extensions/${EXTENSION}"
done
echo "Finished replacing extensions!"

View File

@@ -9,7 +9,7 @@
# just to update the skin when it changes, we just
# use a docker cp command to copy it into the container.
NAME="pod-charlesreid1_stormy_mw_1"
NAME="stormy_mw"
echo "Installing skins into $NAME"
docker exec -it $NAME /bin/bash -c 'rm -rf /var/www/html/skins'
docker cp charlesreid1-config/mediawiki/skins $NAME:/var/www/html/skins