Skip to content

unitedwardrobe/golang-librdkafka

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contains the Dockerfiles for building our build images (the images for the containers that we use to build for example Kafka applications in).

See Taskfile.yml for options.

Static building

Build with -tags=musl (was -tags=static_all before alpine 3.11). Example of building a Go app inside a container, taken from order-service:

docker run \
    -v "$(pwd):/go/src/{{.PROJECT_DIR_FROM_GOPATH}}" \
    -w "/go/src/{{.PROJECT_DIR_FROM_GOPATH}}" \
    unitedwardrobe/golang-librdkafka:alpine3.11-golang1.14.2-librdkafka1.4.2-static \
    go build \
        -mod vendor \
        -tags musl \
        -o bin/{{.APP_NAME}} \
        -a /go/src/{{.PROJECT_DIR_FROM_GOPATH}}/cmd/{{.APP_NAME}}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%