-
Notifications
You must be signed in to change notification settings - Fork 54
/
Makefile
executable file
·50 lines (35 loc) · 1022 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
37
38
39
40
41
42
43
44
45
46
47
48
49
all: clean
clean:
find . -name "*.class" -exec rm -rf {} \;
find . -name .DS_Store -exec rm -rf {} \;
rm -rf build/*
rm -rf smells
rm -f *.log
rm -rf .gradle
# Gradle: https://guides.gradle.org/creating-new-gradle-builds/
# CircleCI: https://circleci.com/docs/2.0/language-java/
init:
gradle init
compile:
gradle build -x test
test:
gradle test
build: compile
gradle shadowJar
spotbugs:
gradle spotbugsMain
codesmells:
java -jar DesigniteJava.jar -i src/main -o smells
designite:
cp DesigniteJava.config .config
run: build
java -cp build/libs/starbucks-all.jar starbucks.Main 2>debug.log
network:
docker network create --driver bridge starbucks
starbucks-api:
docker run --network starbucks --name starbucks-api -p 3000:3000 \
--platform=linux/amd64 -td paulnguyen/starbucks-api:v1.0
starbucks-cashier:
docker run --network starbucks --name starbucks-nodejs -p 8080:8080 \
-e "api_endpoint=http://starbucks-api:3000" --platform=linux/amd64 \
-td paulnguyen/starbucks-nodejs:v1.0