Comments (5)
I was able to get the build working by changing the docker file to the following (Maybe this will help with an official fix)
# Kafka and Zookeeper
FROM java:openjdk-8-jre
ENV DEBIAN_FRONTEND noninteractive
ENV SCALA_VERSION 2.11
ENV KAFKA_VERSION 2.1.1
ENV KAFKA_HOME /opt/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION"
RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
# As suggested by a user, for some people this line works instead of the first one. Use whichever works for your case
# RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list
# Install Kafka, Zookeeper and other needed things
RUN apt-get -o Acquire::Check-Valid-Until=false update && \
apt-get -o Acquire::Check-Valid-Until=false install -y zookeeper wget supervisor dnsutils && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean && \
wget -q http://apache.mirrors.spacedump.net/kafka/2.1.1/kafka_"$SCALA_VERSION"-2.1.1.tgz -O /tmp/kafka_"$SCALA_VERSION"-2.1.1.tgz && \
tar xfz /tmp/kafka_2.11-2.1.1.tgz -C /opt && \
rm /tmp/kafka_2.11-2.1.1.tgz
ADD scripts/start-kafka.sh /usr/bin/start-kafka.sh
# Supervisor config
ADD supervisor/kafka.conf supervisor/zookeeper.conf /etc/supervisor/conf.d/
# 2181 is zookeeper, 9092 is kafka
EXPOSE 2181 9092
CMD ["supervisord", "-n"]
from docker-kafka.
@camccar thank you for posting your work around, this worked for me. very timely too, just started playing around with this today and hit the same error.
from docker-kafka.
While it did build my kafka instance seems to crash afterwords. I'm trying to add sasl plain text auth to test a script.
@dude0001 Is your kafka instance working for you?
from docker-kafka.
I had to add a line to make start-kafka.sh executable. Other than that, it seems to startup for me. I haven't done more with it yet.
After the existing line
ADD scripts/start-kafka.sh /usr/bin/start-kafka.sh
I added
RUN chmod a+x /usr/bin/start-kafka.sh
from docker-kafka.
If someone ends up here, this is also a viable solution for stepping versions. Change the beginning of the Dockerfile under kafka dir:
FROM openjdk:11-jre
ENV DEBIAN_FRONTEND noninteractive
ENV SCALA_VERSION 2.13
ENV KAFKA_VERSION 2.4.0
ENV KAFKA_HOME /opt/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION"
from docker-kafka.
Related Issues (20)
- cant build docker image
- THE REPO DOESN'T WORK, USE THIS INSTEAD
- Please archive this repo HOT 2
- Docker image tags based on kafka version HOT 3
- Kafka example not working (with 0.10) HOT 2
- Docker-Kafka to get started with topic and produce and consume HOT 1
- Update to Kafka 0.11 HOT 1
- Has anyone been able to start a topic using Docker Compose? HOT 6
- Using this docker in production HOT 2
- Failed to start kafka 'exit status 127' HOT 6
- using dynamic port allocation on docker host
- Increase max client connections
- Cannot publish
- Can you please drop this repo? HOT 1
- Run kafka with an external volume HOT 1
- Unable to change port mappings HOT 2
- You run Kafka and Zookeeper with root permissions... Intended?
- Update to Kafka 2.0.0 HOT 4
- Where's the volume mount option for docker kafka?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-kafka.