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 date: 2017-04-16
--- ---
Voiding the Interview
A young man walks into the room, slightly frustrated-looking. He's obviously had 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. 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" run "mkdir -p /site"
def debug?() def debug?()
return getenv("DEBUG") == "yes" getenv("DEBUG") == "yes"
end end
def debug!() def debug!()
run "apk add --no-cache bash" run "apk add --no-cache bash"
debug debug
run "apk del bash"
puts "hint: flatten this image if deploying."
end end
def put(file) def put(file)
@ -46,7 +43,7 @@ debug! if debug?
### Cleanup ### Cleanup
run %q[ rm -rf /root/go /site/backend /root/sdk ] 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 ### Runtime
cmd "/site/run.sh" cmd "/site/run.sh"

View File

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