This commit is contained in:
Cadey Ratio 2017-04-16 12:54:10 -07:00
parent 99769daaba
commit 39d55c92f7
3 changed files with 5 additions and 6 deletions

View File

@ -3,6 +3,8 @@ title: Voiding the Interview
date: 2017-04-16
---
Voiding the Interview
A young man walks into the room, slightly frustrated-looking. He's obviously had
a bad day so far. You can help him by creating a new state of mind.

7
box.rb
View File

@ -7,15 +7,12 @@ run "go1.8.1 download"
run "mkdir -p /site"
def debug?()
return getenv("DEBUG") == "yes"
getenv("DEBUG") == "yes"
end
def debug!()
run "apk add --no-cache bash"
debug
run "apk del bash"
puts "hint: flatten this image if deploying."
end
def put(file)
@ -46,7 +43,7 @@ debug! if debug?
### Cleanup
run %q[ rm -rf /root/go /site/backend /root/sdk ]
run %q[ apk del git go1.8 site-builddep ]
run %q[ apk del git go1.8.1 site-builddep ]
### Runtime
cmd "/site/run.sh"

View File

@ -7,5 +7,5 @@ export PATH="$PATH:/usr/local/go/bin"
export CI="true"
cd /site/backend/christine.website
go1.8 build -v
go1.8.1 build -v
mv christine.website /usr/bin