-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (38 loc) · 936 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
50
51
52
53
54
all: clean
clean:
find . -name "*.class" -exec rm -rf {} \;
rm -rf build/*
compile:
gradle build
jar: compile
gradle shadowJar
run:
echo Starting Service at: http://localhost:9090
java -cp build/libs/starbucks-all.jar api.StarbucksServer
loadtest:
echo Starting Load Test on localhost
java -cp build/libs/starbucks-all.jar:build/classes/test RunLoadTest 5
docker-build:
docker build -t starbucks .
docker images
docker-clean:
docker stop starbucks
docker rm starbucks
docker rmi starbucks
docker-run:
docker run --name starbucks -td starbucks
docker ps
docker-run-host:
docker run --name starbucks -td --net=host starbucks
docker ps
docker-run-bridge:
docker run --name starbucks -td -p 90:9090 starbucks
docker ps
docker-network:
docker network inspect host
docker network inspect bridge
docker-stop:
docker stop starbucks
docker rm starbucks
docker-shell:
docker exec -it starbucks bash