confluentinc / confluent-kafka-go-dev

[EXPERIMENTAL] Development / WIP / exploratory / test fork of confluent-kafka-go
Apache License 2.0
0 stars 7 forks source link

using with docker alpine #4

Open PurmanJ opened 5 years ago

PurmanJ commented 5 years ago

Description

I’d like to try this as it provides a pre-built librdkafka library I could use with docker. But, with the setup.sh requirements, I’m not sure how to do that. I’d need to setup for MAC OS to build/run locally, but to build for docker alpine, would I run setup again specifying linux-musl? How would I dockerize an app with this? Perhaps you have an example you could share?

How to reproduce

Checklist

Please provide the following information:

newcarrotgames commented 3 years ago

Without seeing your Dockerfile (or anything else for that matter), I can't do much for you.

Try adding these lines to your Dockerfile:

RUN apk add --no-cache git build-base
RUN go build -tags musl