-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 767 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
VAR_FILE ?= net-lab.params
DOCKER_FILE = docker-compose.yml
#Load params file with all variables
include $(VAR_FILE)
export
all:
@echo "Usage: make (start|stop|master-cli)"
build: build-master build-proxy
build-master: Dockerfile.master
@echo "Building salt master docker image, version $(TAG_MASTER)"
docker build -f Dockerfile.master -t $(TAG_MASTER) .
build-proxy: Dockerfile.proxy
@echo "Building salt proxy docker image, version $(TAG_PROXY)"
docker build -f Dockerfile.proxy -t $(TAG_PROXY) .
testenv:
env
start:
@echo "Using docker compose file: $(DOCKER_FILE)"
docker-compose -f $(DOCKER_FILE) up -d
stop:
@echo "Using docker compose file: $(DOCKER_FILE)"
docker-compose -f $(DOCKER_FILE) down
master-cli:
docker exec -ti $(MASTER) bash