forked from ryane/docker-kafkacat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Same as edenhill/kcat#110 but one less layer due to no need for COPY
- Loading branch information
Showing
1 changed file
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
FROM debian:stable-20170620 | ||
|
||
WORKDIR /build | ||
|
||
ENV BUILD_PACKAGES "build-essential git curl ca-certificates zlib1g-dev python" | ||
RUN apt-get update -y && \ | ||
apt-get install -y --no-install-recommends $BUILD_PACKAGES && \ | ||
git clone https://github.com/edenhill/kafkacat.git && \ | ||
cd kafkacat && \ | ||
./bootstrap.sh && \ | ||
make install && \ | ||
cd .. && rm -rf kafkacat && \ | ||
apt-get remove --purge -y $BUILD_PACKAGES && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
RUN buildDeps='curl ca-certificates build-essential zlib1g-dev python cmake'; \ | ||
set -ex; \ | ||
apt-get update && apt-get install -y $buildDeps --no-install-recommends; \ | ||
rm -rf /var/lib/apt/lists/*; \ | ||
\ | ||
mkdir /usr/src/kafkacat; \ | ||
curl -SLs "https://github.com/edenhill/kafkacat/archive/master.tar.gz" | tar -xzf - --strip-components=1 -C /usr/src/kafkacat; \ | ||
cd /usr/src/kafkacat; \ | ||
./bootstrap.sh; \ | ||
mv ./kafkacat /usr/local/bin/; \ | ||
\ | ||
rm -rf /usr/src/kafkacat/tmp-bootstrap; \ | ||
apt-get purge -y --auto-remove $buildDeps | ||
|
||
ENTRYPOINT ["kafkacat"] |