box: build a 'thick' image to ensure image caching
This commit is contained in:
parent
f941226816
commit
9306ed4305
10
box.rb
10
box.rb
|
@ -19,10 +19,12 @@ run "go build -v #{$repoPath}/cmd/... && go install -v #{$repoPath}/cmd/..."
|
|||
run "apk del build-base"
|
||||
|
||||
[
|
||||
["route-cli", "route-cli"],
|
||||
["routed", "routed"],
|
||||
["route-httpagent", "route-httpagent"],
|
||||
].each { |x| run "cp /root/go/bin/#{x[0]} /usr/local/bin/#{x[1]}" }
|
||||
"route-cli",
|
||||
"routed",
|
||||
"route-httpagent",
|
||||
].each { |x| run "cp /root/go/bin/#{x} /usr/local/bin/#{x}" }
|
||||
|
||||
tag "xena/route:thick"
|
||||
|
||||
run "apk del go1.9 && rm -rf /root/sdk /root/go"
|
||||
flatten
|
||||
|
|
1
mage.go
1
mage.go
|
@ -117,6 +117,7 @@ func Docker() {
|
|||
|
||||
shouldWork(ctx, nil, wd, "box", "box.rb")
|
||||
shouldWork(ctx, nil, wd, "docker", "tag", "xena/route:latest", "xena/route:"+ver)
|
||||
shouldWork(ctx, nil, wd, "docker", "tag", "xena/route:thick", "xena/route:thick-"+ver)
|
||||
}
|
||||
|
||||
// Linux builds binaries for linux
|
||||
|
|
Loading…
Reference in New Issue