Sign inSign up

divido/gobuild

By divido

Updated about 4 years ago

Image
0

50K+

divido/gobuild repository overview

go-build

These image definitions create build images for our Golang binaries.

Github Authentication

These images authenticate with GitHub (for private libraries/dependencies) with Github developer tokens. Older images used SSH Keys (copied in from a volume mount) but this has been removed in these new images.

Usage

This is a finished container image, and does not need to be built using docker build. Usage for this is to run the container, to generate a go binary.

For example, we have a go application in our current working directory. We would run the following command to create the binary (for use on an alpine 3.11 container):

docker run 
    --rm                                \    # Remove container afer build complete
    -v "${PWD}":/app                    \    # Mount working directory read/write
    -e "GITHUB_TOKEN=${GITHUB_TOKEN}"   \    # Pass in Github token (for private github dependencies)
    divido/gobuild:1.14-alpine3.11      \    # Build container, in this case uses Go 1.14 on an alpine 3.11 OS
    go build -o consumer                \    # Our go specific build command (creates binary called consumer in working dir)

Tags

taggo versionalpine versionbundled packagesnotes
1.15-alpine3.121.153.12librdkafkalatest
1.14-alpine3.111.143.11librdkafka

Tag summary

Content type

Image

Digest

sha256:4bd489135

Size

193.4 MB

Last updated

about 4 years ago

docker pull divido/gobuild:1.19-alpine3.16