forked from CDCgov/fdns-ms-msft-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (37 loc) · 1.05 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
docker-build:
docker-compose up -d
docker build \
-t fdns-ms-msft-utils \
--network=fdns-ms-msft-utils_default \
--rm \
--build-arg MSFT_UTILS_PORT=8086 \
--build-arg MSFT_UTILS_FLUENTD_HOST=fluentd \
--build-arg MSFT_UTILS_FLUENTD_PORT=24224 \
--build-arg MSFT_UTILS_PROXY_HOSTNAME= \
--build-arg OAUTH2_ACCESS_TOKEN_URI= \
--build-arg OAUTH2_PROTECTED_URIS= \
--build-arg OAUTH2_CLIENT_ID= \
--build-arg OAUTH2_CLIENT_SECRET= \
--build-arg SSL_VERIFYING_DISABLE=false \
.
docker-compose down
docker-run: docker-start
docker-start:
docker-compose up -d
docker run -d \
-p 8086:8086 \
--network=fdns-ms-msft-utils_default \
--name=fdns-ms-msft-utils_main \
fdns-ms-msft-utils
docker-stop:
docker stop fdns-ms-msft-utils_main || true
docker rm fdns-ms-msft-utils_main || true
docker-compose down
docker-restart:
make docker-stop 2>/dev/null || true
make docker-start
sonarqube:
docker-compose up -d
docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube || true
mvn clean test sonar:sonar
docker-compose down