initial files

This commit is contained in:
Nabeel Shahzad 2017-06-07 18:43:25 -05:00
parent f158c11dea
commit 26167adae8
4 changed files with 47 additions and 0 deletions

8
.editorconfig Normal file
View File

@ -0,0 +1,8 @@
root = true
[*.{js,py}]
charset = utf-8
# Tab indentation (no size specified)
[Makefile]
indent_style = tab

4
.gitignore vendored
View File

@ -18,3 +18,7 @@ Homestead.json
# Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer # Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
.rocketeer/ .rocketeer/
*.iml
.idea
tmp/

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
#
# after launch run
# docker exec phpvms /usr/bin/mysql -uroot -e 'CREATE DATABASE phpvms'
FROM nabeelio/docker-lemp:latest
RUN mkdir -p /var/run/mysqld
ENTRYPOINT ["/entrypoint.sh"]

26
Makefile Normal file
View File

@ -0,0 +1,26 @@
#
#
# Create the phpvms database if needed:
# docker exec phpvms /usr/bin/mysql -uroot -e 'CREATE DATABASE phpvms'
CURR_PATH=$(shell pwd)
help:
docker:
@mkdir -p $(CURR_PATH)/tmp/mysql
-docker rm -f phpvms
docker build -t phpvms .
docker run --name=phpvms \
-v $(CURR_PATH):/var/www/ \
-v $(CURR_PATH)/tmp/mysql:/var/lib/mysql \
-p 8080:80 \
phpvms
docker-clean:
-docker stop phpvms
-docker rm -rf phpvms
-rm core/local.config.php
-rm -rf tmp/mysql