oops
This commit is contained in:
parent
99769daaba
commit
39d55c92f7
|
@ -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
7
box.rb
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue