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.
21 lines
722 B
21 lines
722 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 && rm ${KAFKA_VERSION}.tgz && \
|
|
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 && \
|
|
#cp /tmp/kraft-combined-logs/meta.properties /
|
|
|
|
COPY docker-entrypoint.sh /
|
|
|
|
WORKDIR ${KAFKA_HOME}
|
|
EXPOSE 9092 9093
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"] |