Skip to content

Commit

Permalink
Fix tools/kafka-all/Dockerfile to work
Browse files Browse the repository at this point in the history
  • Loading branch information
sekikn committed Nov 15, 2023
1 parent b6267a5 commit 8cb0be6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tools/kafka-all/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# docker build -t="apicurio/kafka-all" --rm .
# docker run -it -p 9092:9092 -p 9091:9091 -p 2181:2181 apicurio/kafka-all
# docker run -it -p 8080:8080 apicurio/apicurio-registry-mem:1.3.1.Final
FROM centos:8
# docker run -it -p 8080:8080 quay.io/apicurio/apicurio-registry-mem:latest-snapshot
# (Depending on your network configuration, add `--net host` option
# to the `docker` commands if required to make services reachable)
FROM quay.io/centos/centos:stream8

RUN yum update -y && \
yum install -y java-1.8.0-openjdk-devel && \
curl http://mirror.cc.columbia.edu/pub/software/apache/kafka/2.5.0/kafka_2.12-2.5.0.tgz -o /tmp/kafka.tgz && \
curl https://archive.apache.org/dist/kafka/2.8.1/kafka_2.12-2.8.1.tgz -o /tmp/kafka.tgz && \
tar xfz /tmp/kafka.tgz -C /usr/local && \
mv /usr/local/kafka_2.12-2.5.0 /usr/local/kafka
mv /usr/local/kafka_2.12-2.8.1 /usr/local/kafka

RUN echo "#!/bin/sh" >> /usr/local/kafka/start_kafka.sh && \
echo "cd /usr/local/kafka" >> /usr/local/kafka/start_kafka.sh && \
Expand Down

0 comments on commit 8cb0be6

Please sign in to comment.