File tree 7 files changed +33
-0
lines changed
7 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ * /local /*
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ RUN su mysql -s /bin/sh -c 'mysql_install_db --datadir=/var/lib/mysql'
23
23
RUN mkdir /app
24
24
RUN curl -s https://en-gb.wordpress.org/latest-en_GB.tar.gz -o /app/wordpress.tgz
25
25
RUN tar xvzf /app/wordpress.tgz -C /app/
26
+ RUN chmod -R 777 /app/wordpress/wp-content
26
27
27
28
# Wordpress config
28
29
ADD wp-config.php /app/wordpress/
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ ROOT_PATH=$( cd $( dirname $0 ) && pwd)
3
+
4
+ echo " Installing to $ROOT_PATH /local/"
5
+
6
+ mkdir -p " $ROOT_PATH /local"
7
+
8
+ curl -s https://en-gb.wordpress.org/latest-en_GB.tar.gz -o " $ROOT_PATH /local/wordpress.tgz"
9
+ tar xvzf " $ROOT_PATH /local/wordpress.tgz" -C " $ROOT_PATH /local/"
10
+
11
+ cp " $ROOT_PATH /wp-config.php" " $ROOT_PATH /local/wordpress/"
Original file line number Diff line number Diff line change @@ -6,3 +6,12 @@ MySQL command:
6
6
7
7
Supervisor command:
8
8
/usr/bin/supervisord -n -c /etc/supervisord.conf
9
+
10
+ Get container PID:
11
+ docker inspect --format {{.State.Pid}}
12
+ FS is in /proc/$PID/root
13
+
14
+ TODO:
15
+ Handle change of page URL somehow ¯\_(ツ)_/¯
16
+
17
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ ROOT_PATH=$( cd $( dirname $0 ) && pwd)
3
+
4
+ docker run -it -p 5050:8080 -v " $ROOT_PATH /local:/app" $1
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ ROOT_PATH=$( cd $( dirname $0 ) && pwd)
3
+
4
+ docker run -it -p 5050:8080 $1
Original file line number Diff line number Diff line change 79
79
*/
80
80
define ( 'WP_DEBUG ' , false );
81
81
82
+ // direct plugin installs
83
+ define ('FS_METHOD ' , 'direct ' );
84
+
82
85
/* That's all, stop editing! Happy publishing. */
83
86
84
87
/** Absolute path to the WordPress directory. */
You can’t perform that action at this time.
0 commit comments