From 95d2a990f42f49d0488bf67f8d4609486dbbb9f6 Mon Sep 17 00:00:00 2001 From: Philipp Le Date: Tue, 3 Nov 2020 00:03:49 +0100 Subject: Got plugin installation working --- README.md | 4 +--- docker-compose.yml | 29 +++++++++++++++++++++++------ prepare.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 9 deletions(-) create mode 100755 prepare.sh diff --git a/README.md b/README.md index a5dbcf6..9f8648d 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,7 @@ Preparation: ``` git submodule update --init --recursive -touch wordpress/wp-config.php -mkdir -p wordpress/wp-content/uploads -mkdir -p wordpress/wp-content/languages +sudo ./prepare.sh ``` Edit configuration: diff --git a/docker-compose.yml b/docker-compose.yml index cd814fe..39cd18d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,13 +20,30 @@ services: - "8000:80" restart: always volumes: - - ./wordpress:/var/www/html:ro + - ./run/html:/var/www/html:rw - ./wp-config.php:/var/www/html/wp-config.php:ro - - ./run/wp-content/plugins:/var/www/html/wp-content/plugins:rw - - ./wordpress/wp-content/plugins/index.php:/var/www/html/wp-content/plugins/index.php:ro - - ./wordpress/wp-content/plugins/hello.php:/var/www/html/wp-content/plugins/hello.php:ro - - ./run/wp-content/uploads:/var/www/html/wp-content/uploads:rw - - ./run/wp-content/languages:/var/www/html/wp-content/languages:rw + - ./run/wordpress/wp-admin:/var/www/html/wp-admin:ro + - ./run/wp-content:/var/www/html/wp-content:rw + - ./run/wordpress/wp-includes:/var/www/html/wp-includes:ro + - ./run/wordpress/index.php:/var/www/html/index.php:ro + - ./run/wordpress/license.txt:/var/www/html/license.txt:ro + - ./run/wordpress/readme.html:/var/www/html/readme.html:ro + - ./run/wordpress/wp-activate.php:/var/www/html/wp-activate.php:ro + - ./run/wordpress/wp-blog-header.php:/var/www/html/wp-blog-header.php:ro + - ./run/wordpress/wp-comments-post.php:/var/www/html/wp-comments-post.php:ro + - ./run/wordpress/wp-cron.php:/var/www/html/wp-cron.php:ro + - ./run/wordpress/wp-links-opml.php:/var/www/html/wp-links-opml.php:ro + - ./run/wordpress/wp-load.php:/var/www/html/wp-load.php:ro + - ./run/wordpress/wp-login.php:/var/www/html/wp-login.php:ro + - ./run/wordpress/wp-mail.php:/var/www/html/wp-mail.php:ro + - ./run/wordpress/wp-settings.php:/var/www/html/wp-settings.php:ro + - ./run/wordpress/wp-signup.php:/var/www/html/wp-signup.php:ro + - ./run/wordpress/wp-trackback.php:/var/www/html/wp-trackback.php:ro + - ./run/wordpress/xmlrpc.php:/var/www/html/xmlrpc.php:ro + - ./run/wordpress/wp-content/index.php:/var/www/html/wp-content/index.php:ro + - ./run/wordpress/wp-content/plugins/index.php:/var/www/html/wp-content/plugins/index.php:ro + - ./run/wordpress/wp-content/plugins/hello.php:/var/www/html/wp-content/plugins/hello.php:ro + - ./run/wordpress/wp-content/themes:/var/www/html/wp-content/themes:ro - ./farafeit-theme:/var/www/html/wp-content/themes/farafeit:ro - ./bootstrap-file-list:/var/www/html/wp-content/plugins/bootstrap-file-list:ro diff --git a/prepare.sh b/prepare.sh new file mode 100755 index 0000000..b0ebb48 --- /dev/null +++ b/prepare.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +mkdir -p run/wordpress +cp -r wordpress/* run/wordpress/ +chown -R 33:33 run/wordpress + +mkdir -p run/html +chown -R 33:33 run/html + +mkdir -p run/html/wp-admin +mkdir -p run/html/wp-content +mkdir -p run/html/wp-includes +touch run/html/index.php +touch run/html/license.txt +touch run/html/readme.html +touch run/html/wp-activate.ph +touch run/html/wp-blog-header.php +touch run/html/wp-comments-post.php +touch run/html/wp-cron.php +touch run/html/wp-links-opml.php +touch run/html/wp-load.php +touch run/html/wp-login.php +touch run/html/wp-mail.php +touch run/html/wp-settings.php +touch run/html/wp-signup.php +touch run/html/wp-trackback.php +touch run/html/xmlrpc.php + +touch run/html/wp-config.php + +mkdir -p run/wp-content +touch run/wp-content/index.php +mkdir -p run/wp-content/plugins +chown -R 33:33 run/wp-content +touch run/wp-content/plugins/index.php +touch run/wp-content/plugins/hello.php + +mkdir -p run/wp-content/plugins/bootstrap-file-list + +mkdir -p run/wp-content/themes/ +mkdir -p run/wordpress/wp-content/themes/farafeit + -- cgit v1.1