diff --git a/zookeeper/3.9.3-1/24.03/Dockerfile b/zookeeper/3.9.3-1/24.03/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..732995943842eeb65e778d9f323c579786a3e970 --- /dev/null +++ b/zookeeper/3.9.3-1/24.03/Dockerfile @@ -0,0 +1,19 @@ +ARG BASE=openeuler/openeuler:24.03 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=3.9.3-1 + +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 diff --git a/zookeeper/meta.yml b/zookeeper/meta.yml index 1dc738669772552e6402e248e40bef629b9ead9e..735fd3ed02049befe56f57f2cb8c56d055235547 100644 --- a/zookeeper/meta.yml +++ b/zookeeper/meta.yml @@ -1,2 +1,4 @@ 3.8.3-oe2203sp3: - path: zookeeper/3.8.3/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: zookeeper/3.8.3/22.03-lts-sp3/Dockerfile +3.9.3-1-oe2203sp3: + path: /zookeeper/3.9.3-1/24.03/Dockerfile \ No newline at end of file