This post is a summary of my research on building Go projects in a Docker container on CI (Gitlab, specifically). I found solving private dependencies quite hard (coming from a Node/.NET background) so that is the main reason I wrote this up. Please feel free to reach out if there are any issues or a submit pull request on the Docker image. Dep As dep is the best option for managing Go dependencies right now, the build will need to run dep ensure before building.
Spantree is a Chicago-based consultancy focused on data engineering, devops-centric infrastructure and application development. We are polyglots at heart and specialize in tools like Elasticsearch, Docker, AWS, and JVM languages.