WinterTechForum / phil

Go web service that is a companion to the punxatawny repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phil

This project is a companion to punxatawny. It is a simple "hello world" style web service app written in Go.

Build

Dependencies

Dependencies are described via dep in Gopkg.toml

dep ensure

Local

go build phil.go

For Docker

We ran into a few problems getting this app to run in a standard Alpine container. For the most part, this came down to Alpine uses musl rather than glibc.
Googling found this article that described statically linking the entire Go app, then building a Docker image based on the "scratch" container. The file build.sh in this directory encapsulates building the go app and creating the Docker container.

./build.sh

About

Go web service that is a companion to the punxatawny repo


Languages

Language:Go 75.0%Language:Shell 17.2%Language:Dockerfile 7.8%