зеркало из https://github.com/mozilla/MozDef.git
Add user defined env make target
This commit is contained in:
Родитель
c305ece16d
Коммит
d9a6ec17c9
7
Makefile
7
Makefile
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче