diff --git a/zookeeper/3.9.2/22.03-lts-sp3/Dockerfile b/zookeeper/3.9.2/22.03-lts-sp3/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..29feb10b510cb55ea51eaa66320e2847c439fc09 --- /dev/null +++ b/zookeeper/3.9.2/22.03-lts-sp3/Dockerfile @@ -0,0 +1,19 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp3 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.9.2 + +RUN yum -y install java && \ + yum clean all + +RUN curl -o /tmp/zookeeper.tar.gz https://archive.apache.org/dist/zookeeper/zookeeper-${VERSION}/apache-zookeeper-${VERSION}-bin.tar.gz && \ + tar -zxvf /tmp/zookeeper.tar.gz -C /tmp && \ + cd /tmp/apache-zookeeper-${VERSION}-bin/conf && \ + touch zoo.cfg && echo -e 'tickTime=2000\ndataDir=/var/lib/zookeeper\nclientPort=2181\nadmin.serverPort=8081' > zoo.cfg + +WORKDIR /tmp/apache-zookeeper-${VERSION}-bin/ + +EXPOSE 2181 + +CMD ["bin/zkServer.sh", "start-foreground"] \ No newline at end of file