These image definitions create build images for our Golang binaries.
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.
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)
| tag | go version | alpine version | bundled packages | notes |
|---|---|---|---|---|
1.15-alpine3.12 | 1.15 | 3.12 | librdkafka | latest |
1.14-alpine3.11 | 1.14 | 3.11 | librdkafka |
Content type
Image
Digest
sha256:4bd489135…
Size
193.4 MB
Last updated
about 4 years ago
docker pull divido/gobuild:1.19-alpine3.16