Hi.

Is there a way to use Stackdriver debugger for golang code running on GKE?

*More info...*

So far I've found:

- The node.js debugger doc page 
https://cloud.google.com/debugger/docs/setup/nodejs says you can run the 
debugger on node code on GKE.

- The equivalent golang page 
https://cloud.google.com/debugger/docs/setup/compute-engine-go doesn't 
mention GKE. It *does *mention it needs 64-bit debian linux so I'm guessing 
you'd need to use a debian linux base image for the docker container? ie 
Ubuntu.

- I also found this blogpost tutorial 
<https://translate.google.com/translate?sl=auto&tl=en&js=y&prev=_t&hl=en&ie=UTF-8&u=https%3A%2F%2Fqiita.com%2Fnshmura%2Fitems%2F867d9d560a64c91f7e94&edit-text=&act=url>
 from 
Nov 2016 (the link is an english translation of the Japanese original) that 
is using the following Dockerfile:

FROM ubuntu: 15.10

 RUN apt-get update
 RUN apt - get install - y ca - certificates
 COPY helloworld / usr / local / bin /

 # for Stackdriver Debugger
 RUN apt-get install -y wget
 RUN wget -O go-cloud-debug 
https://storage.googleapis.com/cloud-debugger/compute-go/go-cloud-debug
 RUN chmod 0755 go-cloud-debug
 RUN mv ./ go - cloud - debug / usr / local / bin / go - cloud - debug
 COPY source-context.json /
 COPY source-contexts.json /

 CMD go-cloud-debug-sourcecontext = / source-context.json -appmodule = main 
-appversion = lastest - / usr / local / bin / helloworld

 EXPOSE 8080


My question is: Is this the best way to do this? 

Thanks for any help!
Mike

Follow-up question... What does go-cloud-debug *actually *need to run? A 
big ubuntu base image seems quite large to run a golang binary - is there a 
way I could make the container smaller? (multi-step Docker or 
Container-Builder build? or use a smaller image like bitnami/minideb? Any 
other way?)

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to