Auto copy of themes on build

This commit is contained in:
Alex Hyett 2015-12-16 21:29:43 +00:00
parent 55903dcc3c
commit 17a47c86a9
6 changed files with 30 additions and 12 deletions

11
.gitignore vendored
View file

@ -1,11 +1,2 @@
.vagrant
.DS_Store
src/index.php
src/plugins/hello.php
src/plugins/index.php
src/plugins/akismet
src/themes/index.php
src/themes/twentyfourteen
src/themes/twentyfifteen
src/themes/twentysixteen
.DS_Store

4
Dockerfile Normal file
View file

@ -0,0 +1,4 @@
# Wordpress image which loads content folder
FROM wordpress
ADD src /var/www/html/wp-content/

2
Vagrantfile vendored
View file

@ -14,7 +14,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.hostsupdater.remove_on_suspend = true
config.vm.provision :docker
config.vm.provision :docker_compose, yml: "/vagrant/docker-compose.yml", run: "always"
config.vm.provision :docker_compose, yml: "/vagrant/compose-prod.yml", run: "always"
# Fix for slow external network connections
config.vm.provider :virtualbox do |vb|

View file

@ -1,5 +1,5 @@
web:
image: wordpress
build: .
links:
- mysql
environment:

14
compose-prod.yml Normal file
View file

@ -0,0 +1,14 @@
web:
build: .
links:
- mysql
environment:
- WORDPRESS_DB_PASSWORD=password
ports:
- 80:80
mysql:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=wordpress

9
src/.gitignore vendored Normal file
View file

@ -0,0 +1,9 @@
index.php
plugins/hello.php
plugins/index.php
plugins/akismet
themes/index.php
themes/twentyfourteen
themes/twentyfifteen
themes/twentysixteen