File: Dockerfile.Debian

package info (click to toggle)
kafkacat 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 512 kB
  • sloc: ansic: 3,228; sh: 1,845; makefile: 27
file content (28 lines) | stat: -rw-r--r-- 869 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM debian:stretch-slim

COPY . /usr/src/kafkacat

ENV BUILD_DEPS build-essential zlib1g-dev liblz4-dev libssl-dev libsasl2-dev python cmake libcurl4-openssl-dev pkg-config
ENV RUN_DEPS libssl1.1 libsasl2-2 ca-certificates curl

RUN apt-get update && \
  DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends $BUILD_DEPS $RUN_DEPS && \
  echo "Building" && \
  cd /usr/src/kafkacat && \
  rm -rf tmp-bootstrap && \
  echo "Source versions:" && \
  grep ^github_download ./bootstrap.sh && \
  ./bootstrap.sh && \
  mv kafkacat /usr/bin/ ; \
  echo "Cleaning up" ; \
  cd / ; \
  rm -rf /usr/src/kafkacat; \
  apt-get purge -y --auto-remove $BUILD_DEPS ; \
  apt-get clean -y ; \
  apt-get autoclean -y ; \
  rm /var/log/dpkg.log /var/log/alternatives.log /var/log/apt/*.log; \
  rm -rf /var/lib/apt/lists/*

RUN kafkacat -V

ENTRYPOINT ["kafkacat"]