-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (36 loc) · 1.21 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
.PHONY: deploy clean
deploy:
${INFO} "Creating Jenkins..."
@ docker-compose -f docker-compose.jenkins.yml up -d --build
${INFO} "Creating Nexus..."
@ docker-compose -f docker-compose.nexus.yml up -d --build
${INFO} "Creating SonarQube..."
@ docker-compose -f docker-compose.sonar.yml up -d --build
${INFO} "Build complete"
${INFO} "Browse to localhost:8080 for Jenkins"
${INFO} "Browse to localhost:8081 for Nexus"
${INFO} "Browse to localhost:9000 for Sonar"
deploy_all:
${INFO} "Creating whole stack..."
@ docker-compose -f docker-compose.yml up -d --build
${INFO} "Build complete"
clean:
${INFO} "Deleting Jenkins..."
@ docker-compose -f docker-compose.jenkins.yml down -v --remove-orphans
${INFO} "Deleting Nexus..."
@ docker-compose -f docker-compose.nexus.yml down -v --remove-orphans
${INFO} "Deleting SonarQube..."
@ docker-compose -f docker-compose.sonar.yml down -v --remove-orphans
${INFO} "Cleanup complete"
clean_all:
${INFO} "Deleting stack..."
@ docker-compose -f docker-compose.yml down -v --remove-orphans
${INFO} "Cleanup complete"
# Cosmetics
YELLOW := "\e[1;33m"
NC := "\e[0m"
# Shell Functions
INFO := @bash -c '\
printf $(YELLOW); \
echo "=> $$1"; \
printf $(NC)' SOME_VALUE