-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 1.41 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
43
44
45
46
47
48
problem-build-package:
DOCKER_BUILDKIT=1
docker build -t opstree/fasten-build -f Dockerfile.problem .
problem-build-package-with-time:
time make problem-build-package >/dev/null 2>&1
solution1-build:
docker run -it -v ~/.m2/repository:/root/.m2/repository -w /usr/src/mymaven -v ${PWD}:/usr/src/mymaven --rm maven:3-jdk-8 mvn clean package -Dmaven.test.skip=true
solution1-package:
docker build -t opstree/fasten-build -f Dockerfile.solution1 .
solution1-build-package:
make solution1-build
make solution1-package
solution1-build-package-with-time:
time make solution1-build-package >/dev/null 2>&1
solution2-build-package:
time docker build -t opstree/fasten-build -f Dockerfile.solution2 .
solution2-build-package-with-time:
time make solution2-build-package >/dev/null 2>&1
solution3-build-builder:
docker build -t opstree/fasten-build-builder -f Dockerfile.solution3.builder .
solution3-build-package:
docker build -t opstree/fasten-build -f Dockerfile.solution3 .
solution3-build-package-with-time:
time make solution3-build-package >/dev/null 2>&1
run-app:
docker rm -f app || true
docker run -p 8080:8080 -d --rm --name app opstree/fasten-build
run-report:
echo "Problem build"
make problem-build-package-with-time
echo "Solution 1 build"
make solution1-build-package-with-time
echo "Solution 2 build"
make solution2-build-package-with-time
echo "Solution 3 build"
make solution3-build-package-with-time