initial files
This commit is contained in:
parent
f158c11dea
commit
26167adae8
8
.editorconfig
Normal file
8
.editorconfig
Normal file
@ -0,0 +1,8 @@
|
||||
root = true
|
||||
|
||||
[*.{js,py}]
|
||||
charset = utf-8
|
||||
|
||||
# Tab indentation (no size specified)
|
||||
[Makefile]
|
||||
indent_style = tab
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -18,3 +18,7 @@ Homestead.json
|
||||
|
||||
# Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
|
||||
.rocketeer/
|
||||
|
||||
*.iml
|
||||
.idea
|
||||
tmp/
|
||||
|
9
Dockerfile
Normal file
9
Dockerfile
Normal 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
26
Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user