Charles Reid
e6d86c5959
|
3 years ago | |
---|---|---|
attic | 7 years ago | |
charlesreid1-config@1505e72064 | 4 years ago | |
docs | 7 years ago | |
mkdocs-material@b0c6890853 | 6 years ago | |
.gitignore | 7 years ago | |
.gitmodules | 7 years ago | |
Dockerfile | 3 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
Skins.md | 6 years ago | |
clean.sh | 7 years ago | |
erase_mw_volume.sh | 7 years ago | |
fix_LocalSettings.sh | 3 years ago | |
fix_extensions_dir.sh | 3 years ago | |
fix_skins.sh | 3 years ago | |
make_mw_volume.sh | 7 years ago | |
mkdocs.yml | 6 years ago |
README.md
d-mediawiki
This is the MediaWiki docker container used to run MediaWiki on charlesreid1.com/wiki.
This container also runs an Apache web server and a PHP engine.
You should not run this container by itself (see pod-charlesreid1).
Summary
This directory contains a Dockerfile that modifies the
official MediaWiki docker container. Before launching
the container, it specifies /var/www/html
as a mounted volume,
and it copies LocalSettings.php
, the MediaWiki config file,
from this repo into the container.
See d-mysql repo.
Also see pod-charlesreid1 for a working pod using this container.
Docker Compose
To use this container as part of a pod, as with the charlesreid1.com wiki, see pod-charlesreid1-wiki.
Troubleshooting
If you are seeing 404s on every page you try, it may be because
your MediaWiki config file is set to redirect you to /wiki/Main_Page
but your web server is not set up to handle it.
See this lin and the guide for apache and nginx.
Updating Settings
The LocalSettings.php file must be copied into the container, because we will end up bind-mounting the entire MediaWiki directory when the container is run and we can't bind-mount a file inside a bind-mounted directory.
Thus, to update LocalSettings.php, skins, or extensions, you will need to re-make the Docker container. Use the make rules to remake the Docker container:
make clean
make build
make run
Submodule
The submodule charlesreid1-config/
contains configuration files for both
MediaWiki and Apache.
See the wiki/charlesreid1-config repo for details.
To clone the submodule when you clone the repo,
include the --recursive
flag:
git clone --recursive https://git.charlesreid1.com/docker/d-mediawiki.git
To check out the submodule after a shallow clone:
git submodule init
# or
git submodule update --init
To fetch changes to the submodule from the submodule's remote:
git submodule update --remote