bansho/Makefile
aviau 1dcd59e817 Ignore errors on 'make remove'
Change-Id: I5b0b3f2d6488d3e0a9de323d278fadaf841bbb7b
2015-07-16 12:14:14 -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: remove
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: remove
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