-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
60 lines (46 loc) · 1.27 KB
/
Makefile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
build-zabbix-server:
./dev/zabbix-server.sh
build-rundeck:
./dev/rundeck.sh
build-dummy-host:
./dev/dummy-host.sh
docker start dummy-host
build-containers: build-zabbix-server build-dummy-host build-rundeck
start-zabbix-server:
echo "Starting Zabbix server containers"
docker start mysql-server
docker start zabbix-java-gateway
docker start zabbix-server-mysql
docker start zabbix-web-nginx-mysql
stop-zabbix-server:
echo "Stopping Zabbix server containers"
docker stop zabbix-web-nginx-mysql
docker stop zabbix-server-mysql
docker stop zabbix-java-gateway
docker stop mysql-server
start-rundeck:
echo "Starting rundeck container"
docker start rundeck
stop-rundeck:
echo "Stopping rundeck container"
docker stop rundeck
start-dummy-host:
echo "Starting Zabbix agent"
docker start dummy-host
stop-dummy-host:
echo "Stopping Dummy host"
docker stop dummy-host
start-containers: start-zabbix-server start-rundeck start-dummy-host
stop-containers: stop-zabbix-server stop-rundeck stop-dummy-host
test:
golint `go list ./... | grep -v /vendor/`
@echo ""
go test ./...
build-linux:
/bin/bash -c "pushd cli/ && \
CGO_ENABLED=0 GOOS=linux go build -o ../rundeck-zabbix && \
popd"
build:
/bin/bash -c "pushd cli/ && \
go build -o ../rundeck-zabbix && \
popd"