bansho/Makefile
Frédéric Vachon 98bf716699 Drupal makefile entry
Change-Id: Ie4a2ef86ea31f8de24e990df203fed26852d2697
2015-06-05 11:46:31 -04:00

34 lines
1.1 KiB
Makefile

all: build daemon
clean: kill remove
build:
sudo docker build -t bansho .
rebuild:
sudo docker build --no-cache -t bansho .
interactive:
sudo docker run -p 8888:8888 --link surveil_surveil_1:surveil --link surveil_grafana_1:grafana -v $(shell pwd)/app:/opt/bansho/dist -e BANSHO_ENV=false -i -t --name bansho bansho bash
daemon:
sudo docker run -p 8888:8888 --link surveil_surveil_1:surveil --link surveil_grafana_1:grafana -v $(shell pwd)/app:/opt/bansho/dist -e BANSHO_PROD=false -d -t --name bansho bansho
grunt development
drupal:
sudo docker run -p 8888:8888 --link drupalmonitoring_surveil_1:surveil -v $(shell pwd)/app:/opt/bansho/dist -e BANSHO_PROD=false -d -t --name bansho bansho
grunt development
production:
sudo docker run -p 8888:8888 --link surveil_surveil_1:surveil --link surveil_grafana_1:grafana -d -t --name bansho bansho
staging:
sudo docker run -p 8888:8888 --link surveil_surveil_1:surveil --link surveil_grafana_1:grafana -v $(shell pwd)/dist:/opt/bansho/dist -e BANSHO_PROD=false -d -t --name bansho bansho
grunt staging
kill:
sudo docker kill bansho
remove:
sudo docker rm -f bansho