Skip to content

Add yahoo/kafka-manager #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions manager/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM solsson/kafka-jre@sha256:7765513cf5fa455a672a06f584058c1c81cc0b3b56cc56b0cfdf1a917a183f26

ENV KAFKA_MANAGER_VERSION=1.3.3.8

RUN set -ex; \
export DEBIAN_FRONTEND=noninteractive; \
runDeps=''; \
buildDeps='curl ca-certificates unzip'; \
apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends; \
\
mkdir -p /opt/kafka-manager-src; \
curl -SLs "https://github.com/yahoo/kafka-manager/archive/$KAFKA_MANAGER_VERSION.tar.gz" | tar -xzf - --strip-components=1 -C /opt/kafka-manager-src; \
\
cd /opt/kafka-manager-src; \
./sbt clean dist; \
\
cd /opt; \
unzip kafka-manager-src/target/universal/kafka-manager-$KAFKA_MANAGER_VERSION.zip; \
mv kafka-manager-$KAFKA_MANAGER_VERSION kafka-manager; \
\
rm -rf /root/.sbt /root/.ivy2 /opt/kafka-manager-src; \
\
apt-get purge -y --auto-remove $buildDeps; \
rm -rf /var/lib/apt/lists/*; \
rm -rf /var/log/dpkg.log /var/log/alternatives.log /var/log/apt

WORKDIR /opt/kafka-manager

ENTRYPOINT ["./bin/kafka-manager"]