WIP: start and stop docker container with bash script
This commit is contained in:
11
Makefile
11
Makefile
@@ -1,9 +1,14 @@
|
||||
image = miti.sh
|
||||
|
||||
run:
|
||||
docker run --rm -it --init -v $(PWD):/opt/app -p 8080:8080 \
|
||||
sitegen-openresty
|
||||
--add-host=miti.sh=127.0.0.1 $(image)
|
||||
|
||||
build:
|
||||
docker run --rm -w /opt/app -v $(PWD):/opt/app sitegen-openresty sitegen
|
||||
docker run --rm -w /opt/app -v $(PWD):/opt/app $(image) sitegen
|
||||
|
||||
lint:
|
||||
docker run --rm -w /opt/app -v $(PWD):/opt/app sitegen-openresty moonc -l .
|
||||
docker run --rm -w /opt/app -v $(PWD):/opt/app $(image) moonc -l .
|
||||
|
||||
test:
|
||||
./test.sh
|
||||
|
||||
Reference in New Issue
Block a user