vyvanse/box.rb

41 lines
635 B
Ruby

$repo = "git.xeserv.us/xena/vyvanse"
$gover = "1.9"
from "xena/go-mini:#{$gover}"
run "go#{$gover} download"
def foldercopy dir
copy "#{dir}", "/root/go/src/#{$repo}/#{dir}"
end
def gobuild pkg
run "mkdir -p /root/go/bin && cd /root/go/bin && go#{$gover} build -v #{$repo}/#{pkg}"
end
[
"vendor",
"vendor-log",
].each { |x| foldercopy x }
[
"bot",
"cmd",
"internal",
].each { |x| foldercopy x }
[
"cmd/vyvanse",
"cmd/logworker",
].each { |x| gobuild x }
cmd "/root/go/bin/vyvanse"
run "rm -rf $HOME/sdk /root/go/pkg ||:"
run "apk del go#{$gover}"
tag "xena/vyvanse:thick"
flatten
tag "xena/vyvanse:latest"