google-cloud-functions-go icon indicating copy to clipboard operation
google-cloud-functions-go copied to clipboard

Created Docker image for Kelsey's tools

Open markuscraig opened this issue 7 years ago • 1 comments

Thanks Kelsey, this is really cool.

I created a simple Docker image for Go 1.8.1 and Kelsey's cli tools.

  • https://hub.docker.com/r/barl3yb3ar/go1.8.1-gcf/

Here is my how-to, but the HTTP API does not work yet. Should be simple. Anybody see anything I'm missing?

  • https://github.com/markuscraig/google-cloud-functions-examples/tree/master/go_hello_http

Thanks! M

markuscraig avatar Apr 27 '17 22:04 markuscraig

I found that using r, err := http.NewRequest(request.Method, request.URL, bytes.NewBufferString(request.Body)) as in https://github.com/kelseyhightower/google-cloud-functions-go/blob/master/shim/handlers.go#L68, did not work, at least it failed to work in my experiments. however using the proper http request r, err := http.NewRequest(request.Method, request.URL, bytes.NewBufferString(request.Body)) worked for me.

MartinSahlen avatar Jun 01 '17 04:06 MartinSahlen