Add user defined env make target

This commit is contained in:
Jon Moroney 2019-01-28 10:45:19 -08:00
Родитель c305ece16d
Коммит d9a6ec17c9
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -31,6 +31,13 @@ run-cloudy-mozdef: ## Run the MozDef containers necessary to run in AWS (`cloudy
docker-compose -f docker/compose/docker-compose-cloudy-mozdef.yml -p $(NAME) pull
docker-compose -f docker/compose/docker-compose-cloudy-mozdef.yml -p $(NAME) up -d
.PHONY: run-env-mozdef
run-env-mozdef: ## Run the MozDef containers with a user specified env file. Run with make 'run-env-mozdef -e ENV=my.env'
$(shell test -f $(ENV) || touch $(ENV))
$(shell cp $(ENV) docker/compose/user_input.env)
docker-compose -f docker/compose/docker-compose-user-env.yml -p $(NAME) pull
docker-compose -f docker/compose/docker-compose-user-env.yml -p $(NAME) up -d
restart-cloudy-mozdef:
docker-compose -f docker/compose/docker-compose-cloudy-mozdef.yml -p $(NAME) restart