I hereby claim:
- I am bscott on github.
- I am brianscott (https://keybase.io/brianscott) on keybase.
- I have a public key ASBivyaVWIonmIXRs2KguWa_ZysI_TWpIS9UmWj5e2AcQgo
To claim this, I am signing this object:
FROM gobuffalo/buffalo:development as builder | |
ENV BP=$GOPATH/src/github.com/gopherguides/web | |
RUN mkdir -p $BP | |
WORKDIR $BP | |
ADD package.json . | |
RUN npm install | |
ADD . . |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
$ buffalo dev | |
Buffalo version v0.9.0 | |
buffalo: 2017/06/30 01:03:24 === Rebuild on: :start: === | |
buffalo: 2017/06/30 01:03:24 === Running: go build -v -i -o tmp/golangflow-build (PID: 1735) === | |
github.com/bscott/golangflow/vendor/github.com/mitchellh/go-homedir | |
github.com/bscott/golangflow/vendor/github.com/fatih/color/vendor/github.com/mattn/go-isatty | |
github.com/bscott/golangflow/vendor/github.com/fatih/color/vendor/github.com/mattn/go-colorable | |
github.com/bscott/golangflow/vendor/github.com/go-sql-driver/mysql | |
github.com/bscott/golangflow/vendor/github.com/jmoiron/sqlx/reflectx |
// my own helper functions | |
func trimQuotes(s string) string { | |
if len(s) >= 2 { | |
if s[0] == '"' && s[len(s)-1] == '"' { | |
return s[1 : len(s)-1] | |
} | |
} | |
return s | |
} |
FROM billyteves/alpine-golang-glide:1.2.0 | |
ADD . /go/src/app | |
WORKDIR /go/src/app | |
RUN glide install | |
RUN go install . | |
ENTRYPOINT /go/bin/app | |
EXPOSE 3000 |
func CToGoString(c []byte) string { | |
n := -1 | |
for i, b := range c { | |
if b == 0 { | |
break | |
} | |
n = i | |
} | |
return string(c[:n+1]) |
#!/bin/sh | |
# Fails on unset variables & whenever a command returns a non-zero exit code. | |
set -eu | |
# If the variable `$DEBUG` is set, then print the shell commands as we execute. | |
if [ -n "${DEBUG:-}" ]; then set -x; fi | |
# Download URL for a `core/hab` Habitat slim archive | |
_url='https://api.bintray.com/content/habitat/stable/linux/x86_64/hab-$latest-x86_64-linux.tar.gz' | |
_q="?bt_package=hab-x86_64-linux" |
Running handlers: | |
[2015-04-18T18:04:26-07:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2015-04-18T18:04:26-07:00] ERROR: Exception handlers complete | |
[2015-04-18T18:04:26-07:00] FATAL: Stacktrace dumped to /Users/bscott/Development/oncam/chef_provisioner/.chef/local-mode-cache/cache/chef-stacktrace.out | |
Chef Client failed. 0 resources updated in 3.899676 seconds | |
[2015-04-18T18:04:26-07:00] ERROR: Unable to activate cheffish-1.1.2, because chef-zero-3.2.1 conflicts with chef-zero (~> 4.0) |
# TODO, make this more dynamic | |
region = node[:domain] | |
ext_ip = node[:cloud_v2][:public_ipv4] | |
ext_ip = ext_ip.gsub!(".",",") | |
if region.include?("us") | |
osp_public_queue_name = "osp_US_public_queue" | |
elsif region.include?("ap") | |
osp_public_queue_name = "osp_AP_public_queue" | |
elsif region.include?("eu") |