You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
660 B
19 lines
660 B
FROM openjdk:8u212-jre-alpine
|
|
|
|
ENV KAFKA_VERSION=kafka_2.13-2.8.0 \
|
|
KAFKA_HOME=/opt/kafka \
|
|
PATH=${PATH}:${KAFKA_HOME}/bin
|
|
|
|
COPY ${KAFKA_VERSION}.tgz /tmp
|
|
|
|
RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main/" > /etc/apk/repositories
|
|
RUN apk update && apk add --no-cache bash && /bin/bash && \
|
|
cd /tmp && tar -xzf ${KAFKA_VERSION}.tgz -C /opt && \
|
|
cd /opt && mv ${KAFKA_VERSION} kafka && cd ${KAFKA_HOME} && \
|
|
bin/kafka-storage.sh format -t $(bin/kafka-storage.sh random-uuid) -c config/kraft/server.properties
|
|
|
|
WORKDIR ${KAFKA_HOME}
|
|
EXPOSE 9092 9093
|
|
|
|
ENTRYPOINT [ "bin/kafka-server-start.sh","config/kraft/server.properties" ]
|