-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocal_build.sh
executable file
·107 lines (90 loc) · 2.32 KB
/
local_build.sh
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/bin/bash
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'
# build.docker: build
docker pull golang:1.12
time make build.docker
docker images
docker rmi -f $(docker images -q)
# build.docker-cache
docker pull golang:1.12
docker pull alpine:latest
time make build.docker-cache
docker images
docker rmi -f $(docker images -q)
######## builder pattern
# build.dockerbuilder
docker pull golang:1.12
docker pull alpine:latest
time make build.dockerbuilder
docker images
docker rmi -f $(docker images -q)
# build.dockerbuilder-cache
docker pull golang:1.12
docker pull alpine:latest
time make build.dockerbuilder-cache
docker images
docker rmi -f $(docker images -q)
# build.dockerbuilder-nocache
time make build.dockerbuilder-nocache
docker images
docker rmi -f $(docker images -q)
# build.dockerbuilder-squash
docker pull golang:1.12
docker pull alpine:latest
time make build.dockerbuilder-squash
docker images
docker rmi -f $(docker images -q)
# build.dockerbuilder-compress
docker pull golang:1.12
docker pull alpine:latest
time make build.dockerbuilder-compress
docker images
docker rmi -f $(docker images -q)
######## alpine
# build.dockeralpine
docker pull golang:1.12
docker pull alpine:latest
time make build.dockeralpine
docker images
docker rmi -f $(docker images -q)
# build.dockeralpine-cache
docker pull golang:1.12
docker pull alpine:latest
time make build.dockeralpine-cache
docker images
docker rmi -f $(docker images -q)
# build.dockeralpine-nocache
time make build.dockeralpine-nocache
docker images
docker rmi -f $(docker images -q)
# build.dockeralpine-squash
docker pull golang:1.12
docker pull alpine:latest
time make build.dockeralpine-squash
docker images
docker rmi -f $(docker images -q)
# build.dockeralpine-compress
docker pull golang:1.12
docker pull alpine:latest
time make build.dockeralpine-compress
docker images
docker rmi -f $(docker images -q)
######## min
# build.docker-min
time make build.docker-min
docker images
docker rmi -f $(docker images -q)
# build.docker-min-nocache
time make build.docker-min-nocache
docker images
docker rmi -f $(docker images -q)
# build.docker-min-squash
time make build.docker-min-squash
docker images
docker rmi -f $(docker images -q)
# build.docker-min-compress
time make build.docker-min-compress
docker images
docker rmi -f $(docker images -q)