Open almereyda opened 8 years ago
The docker-entrypoint.sh
script that gets copied to the image unconditionally tries to create symlinks of everything in /usr/src/mediawiki
into /var/www/html
. That really should only happen the first time that the server is set up. So, I don't think this is a real fix for the issue, but a workaround is the following change that forces the symlinks.
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index 37e7d33..40c14b9 100755
--- a/docker-entrypoint.sh
+++ b/docker-entrypoint.sh
@@ -115,7 +115,7 @@ EOPHP
cd /var/www/html
# FIXME: Keep php files out of the doc root.
-ln -s /usr/src/mediawiki/* .
+ln -sf /usr/src/mediawiki/* .
: ${MEDIAWIKI_SHARED:=/data}
if [ -d "$MEDIAWIKI_SHARED" ]; then
An error occurs when an existing container is started again. The initial setup procedure doesn't seem to be skipped properly.
From
docker-compose logs mediawiki
:@species Any ideas?
The regular image > container maintenance worked well today with https://lab.allmende.io/transformap/docker-compose-wikibase
Make sure to change something in the
Dockerfile
so the Docker build cache is invalidated and refreshed.