[Container-tools] Go newbie

Steve Speicher sspeiche at redhat.com
Mon Jul 24 03:13:06 UTC 2017


On Fri, Jul 7, 2017 at 8:45 AM Burr Sutter <bsutter at redhat.com> wrote:

> On Fri, Jul 7, 2017 at 9:37 AM, jesus m. rodriguez <jesusr at redhat.com>
> wrote:
>
>> On Fri, 2017-07-07 at 09:13 -0400, jesus m. rodriguez wrote:
>> > On Fri, 2017-07-07 at 04:33 -0400, Burr Sutter wrote:
>> > > I would like to add a helloworld Go REST endpoint to my mix of
>> > > demos
>> >
>> > [snip]
>> >
>> > >
>> > > I even have Node.js (needs work to make it match)
>> > > https://github.com/burrsutter/kube4docker/blob/master/node-demo/hel
>> > > lo
>> > > -http.js
>> > >
>> > > and I can wrap them easily up in Docker and throw then into Kube
>> > > but I thought it would be fun to have a Go example - anybody have a
>> > > super
>> > > simple Go REST endpoint and a Dockerfile?
>> > >
>> >
>> > Burr,
>> >
>> > I can cut down our old server to be a single example endpoint for
>> > you.
>> >
>> > https://github.com/fusor/cap-server/blob/master/main.go
>> >
>> > jesus
>>
>> I'll add a Dockerfile file for you. But here's a simple go example.
>>
>> https://github.com/jmrodri/go-demo/blob/master/main.go
>>
>> thank you and I am very curious to know what the Dockerfile looks like -
> never seen one for a "go app"
>

Maybe this one helps
https://github.com/openshift/origin/tree/master/examples/hello-openshift

Steve


> jesus
>>
>> --
>> jesus m. rodriguez          | jesusr at redhat.com
>> principal software engineer | irc: zeus
>> red hat systems management  | 919.754.4413 (w)
>> rhce # 805008586930012      |
>> +---------------------------------------------+
>> |   "Those who cannot remember the past       |
>> |    are condemned to repeat it."             |
>> |                        -- George Santayana  |
>> +---------------------------------------------+
>>
>> _______________________________________________
>> Container-tools mailing list
>> Container-tools at redhat.com
>> https://www.redhat.com/mailman/listinfo/container-tools
>>
> _______________________________________________
> Container-tools mailing list
> Container-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/container-tools
>
-- 
Thanks, Steve Speicher Red Hat OpenShift Sent from Gmail Mobile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/container-tools/attachments/20170724/76789e78/attachment.htm>


More information about the Container-tools mailing list