filepath rel to proj root

Former-commit-id: 3afa1bcb92
This commit is contained in:
Leon Stafford 2017-04-02 22:29:45 +12:00
parent 8fbc749564
commit 3d9a7c7a08
3 changed files with 4 additions and 4 deletions

View file

@ -5,6 +5,6 @@ sudo docker rm -f devmysql
sudo docker rm -f plugindevwp sudo docker rm -f plugindevwp
sudo docker build -t leonstafford/wordpress-static-html-plugin:latest . sudo docker build -t leonstafford/wordpress-static-html-plugin:latest .
sudo docker run --name devmysql -e MYSQL_ROOT_PASSWORD=banana -d mariadb sudo docker run --name devmysql -e MYSQL_ROOT_PASSWORD=banana -d mariadb
sudo docker run --name plugindevwp --link devmysql:mysql -p 8080:80 -d -v $(pwd)/../:/app leonstafford/wordpress-static-html-plugin sudo docker run --name plugindevwp --link devmysql:mysql -p 8080:80 -d -v $(pwd):/app leonstafford/wordpress-static-html-plugin
sudo docker exec plugindevwp sh /post_launch.sh sudo docker exec plugindevwp sh /post_launch.sh
sudo docker exec -it plugindevwp sh /watch_source_files.sh sudo docker exec -it plugindevwp sh /watch_source_files.sh

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
PROJECT_ROOT=$(pwd)/../ PROJECT_ROOT=$(pwd)
SVN_ROOT=/home/leon/svnplugindir SVN_ROOT=/home/leon/svnplugindir
NEW_TAG=1.9 NEW_TAG=1.9

View file

@ -3,10 +3,10 @@
sudo docker rm -f devmysql sudo docker rm -f devmysql
sudo docker rm -f plugindevwp sudo docker rm -f plugindevwp
sudo docker rm -f seleniumserver sudo docker rm -f seleniumserver
sudo docker build -t leonstafford/wordpress-static-html-plugin:latest ../ sudo docker build -t leonstafford/wordpress-static-html-plugin:latest .
sudo docker run --name seleniumserver -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:latest sudo docker run --name seleniumserver -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:latest
sudo docker run --name devmysql -e MYSQL_ROOT_PASSWORD=banana -d mariadb sudo docker run --name devmysql -e MYSQL_ROOT_PASSWORD=banana -d mariadb
sudo docker run --name plugindevwp --link devmysql:mysql -p 8080:80 -d -v $(pwd)/../:/app leonstafford/wordpress-static-html-plugin sudo docker run --name plugindevwp --link devmysql:mysql -p 8080:80 -d -v $(pwd):/app leonstafford/wordpress-static-html-plugin
sudo docker exec plugindevwp sh /post_launch.sh sudo docker exec plugindevwp sh /post_launch.sh
echo 'what is running now?' echo 'what is running now?'