Skip to content

Docker container to build GoLang 1.4.2 application binary for linux amd64

Notifications You must be signed in to change notification settings

gsblue/go-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-builder

Docker container to test and build GoLang 1.4.2 application.

Requirements

Tests

Go builder will run all the tests from your application with code coverage. If the tests fail build process will not continue.

Canonical Import Path

Go builder needs to know the fully-qualified package name of your application. Below is how we can identify canonical import path of your application.

package main // import "github.com/gsblue/sampleApi"

It will read this annotation from your source code and copy the source code appropriately in the GOPATH for compilation.

Dependencies

If you are using Godep to manage your dependencies builder will reference the packages from your Godeps/_workspace directory instead of downloading them via go get. Note: go get may download versions of packages which are different to what you developed against.

Binary

Go builder only produces native binary for linux based os with amd64 architecture. The intention is to use the binary in a docker container.

Usage

docker run --rm -v $(pwd):/src gsblue/go-builder

Run this command from the root directory of your application.

About

Docker container to build GoLang 1.4.2 application binary for linux amd64

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages