Skip to content

Commit

Permalink
Uses specific dependency versions for docker image build
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Oct 10, 2017
1 parent 0393379 commit 2778479
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM debian:stretch-slim

ENV librdkafka_version=v0.11.1-RC1 yajl_version=2.1.0

COPY . /usr/src/kafkacat

RUN set -ex; \
Expand All @@ -9,8 +11,13 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*; \
\
cd /usr/src/kafkacat; \
\
sed -i "s|github_download \"edenhill/librdkafka\" \"master\"|github_download \"edenhill/librdkafka\" \"${librdkafka_version}\"|" ./bootstrap.sh; \
sed -i "s|github_download \"lloyd/yajl\" \"master\"|github_download \"lloyd/yajl\" \"${yajl_version}\"|" ./bootstrap.sh; \
\
echo "Source versions:"; \
grep ^github_download ./bootstrap.sh; \
\
./bootstrap.sh; \
mv ./kafkacat /usr/local/bin/; \
\
Expand Down

0 comments on commit 2778479

Please sign in to comment.