2017-08-25 08:22:58 +00:00
|
|
|
$repo = "git.xeserv.us/xena/vyvanse"
|
2017-08-29 16:50:30 +00:00
|
|
|
$gover = "1.9"
|
2017-08-25 08:22:58 +00:00
|
|
|
|
|
|
|
from "xena/go-mini:#{$gover}"
|
|
|
|
run "go#{$gover} download"
|
|
|
|
|
2017-08-29 18:41:56 +00:00
|
|
|
def foldercopy dir
|
2017-08-25 08:22:58 +00:00
|
|
|
copy "#{dir}", "/root/go/src/#{$repo}/#{dir}"
|
|
|
|
end
|
|
|
|
|
2017-08-29 18:41:56 +00:00
|
|
|
def gobuild pkg
|
2017-08-29 20:30:43 +00:00
|
|
|
run "mkdir -p /root/go/bin && cd /root/go/bin && go#{$gover} build -v #{$repo}/#{pkg}"
|
2017-08-25 08:22:58 +00:00
|
|
|
end
|
|
|
|
|
2017-08-29 20:30:43 +00:00
|
|
|
[
|
|
|
|
"vendor",
|
|
|
|
"vendor-log",
|
|
|
|
].each { |x| foldercopy x }
|
|
|
|
|
2017-08-29 18:41:56 +00:00
|
|
|
[
|
2017-08-25 08:22:58 +00:00
|
|
|
"bot",
|
|
|
|
"cmd",
|
2017-08-29 16:50:03 +00:00
|
|
|
"internal",
|
2017-08-29 18:41:56 +00:00
|
|
|
].each { |x| foldercopy x }
|
2017-08-25 08:22:58 +00:00
|
|
|
|
2017-08-29 18:41:56 +00:00
|
|
|
[
|
|
|
|
"cmd/vyvanse",
|
2017-08-29 20:30:43 +00:00
|
|
|
"cmd/logworker",
|
2017-08-29 18:41:56 +00:00
|
|
|
].each { |x| gobuild x }
|
2017-08-25 08:22:58 +00:00
|
|
|
|
2017-08-29 18:41:56 +00:00
|
|
|
cmd "/root/go/bin/vyvanse"
|
2017-08-25 08:22:58 +00:00
|
|
|
|
2017-08-29 18:41:56 +00:00
|
|
|
run "rm -rf $HOME/sdk /root/go/pkg ||:"
|
2017-08-25 08:22:58 +00:00
|
|
|
run "apk del go#{$gover}"
|
2017-08-29 20:30:43 +00:00
|
|
|
|
|
|
|
tag "xena/vyvanse:thick"
|
|
|
|
|
2017-08-25 08:22:58 +00:00
|
|
|
flatten
|
|
|
|
|
2017-08-29 20:30:43 +00:00
|
|
|
tag "xena/vyvanse:latest"
|