0

I was trying to run librdkafka version 1.3.0 from alpine distribution over my docker container using this:

FROM golang:1.13.6-alpine3.10 as base

RUN apk add --no-cache --update librdkafka=1.3.0 librdkafka-dev=1.3.0 --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community

but got this error while building image:

librdkafka-1.4.2-r0:
    breaks: world[librdkafka=1.3.0]
    satisfies: librdkafka-dev-1.4.2-r0[librdkafka=1.4.2-r0]
  librdkafka-dev-1.4.2-r0:
    breaks: world[librdkafka-dev=1.3.0]

Can someone tell me what might be possibly wrong here?

1 Answers1

1

The librdkafka package has been upgraded to 1.4.2.

In Alpine repositories, as opposed to Ubuntu for example, old package versions are not kept. This is mostly done for security reasons, AFAICT. When a package is upgraded, the old version is gone for good. This has the unfortunate side effect of breaking images that depend on specific package versions.

The currently available librdkafka 1.X versions on Alpine repositories are 1.4.2 (edge, 3.12), 1.2.2 (3.11), and 1.0.1 (3.10).

If you must use this exact version, you could try building it from source, using the 1.3.0 tag.

valiano
  • 10,373
  • 4
  • 36
  • 60