-
Notifications
You must be signed in to change notification settings - Fork 47
/
Makefile
36 lines (29 loc) · 917 Bytes
/
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
all: help
help:
@echo ""
@echo "-- Help Menu"
@echo ""
@echo " 1. make build - build the sonarqube image"
@echo " 2. make quickstart - start sonarqube"
@echo " 3. make stop - stop sonarqube"
@echo " 4. make logs - view logs"
@echo " 5. make purge - stop and remove the container"
@echo " 6. make port - view the exposed port"
build:
@docker build --tag=harbur/sonarqube .
quickstart:
@echo "Starting SonarQube..."
@docker-compose up -d
@echo "Please be patient. This could take a while..."
@echo "Type 'make port' to view the exposed port"
@echo "Type 'make logs' for the logs"
stop:
@echo "Stopping sonarqube..."
@docker-compose stop
logs:
@docker-compose logs
purge: stop
@echo "Removing stopped container..."
@docker-compose rm
port:
@echo "Sonarqube will be available at http://$(shell docker port dockersonarqube_sonarqube_1 9000)"