基础镜像-Zookeeper

网友投稿 234 2022-10-20

基础镜像-Zookeeper

FROM test.com/jdk:1.8u162MAINTAINER hush #Install zookeeperRUN mkdir -v /data/logs && mkdir -pv /data/zookeeperADD zookeeper-3.4.11.tar.gz /data/ADD run.sh /run.shRUN chmod +x /run.shEXPOSE 2181EXPOSE 2888EXPOSE 3888CMD ["/run.sh"]

#!/bin/bashZOO_CONFIG="/data/zookeeper-3.4.11/conf/zoo.cfg"# Output server IDecho "server id (myid): ${SERVER_ID}"echo "${SERVER_ID}" > /data/zookeeper/myid# Add additional ZooKeeper servers into the zoo.cfg fileecho "${ADDITIONAL_ZOOKEEPER_1}" >> ${ZOO_CONFIG}echo "${ADDITIONAL_ZOOKEEPER_2}" >> ${ZOO_CONFIG}echo "${ADDITIONAL_ZOOKEEPER_3}" >> ${ZOO_CONFIG}echo "${ADDITIONAL_ZOOKEEPER_4}" >> ${ZOO_CONFIG}echo "${ADDITIONAL_ZOOKEEPER_5}" >> ${ZOO_CONFIG}echo "${ADDITIONAL_ZOOKEEPER_6}" >> ${ZOO_CONFIG}echo "${ADDITIONAL_ZOOKEEPER_7}" >> ${ZOO_CONFIG}echo "${ADDITIONAL_ZOOKEEPER_8}" >> ${ZOO_CONFIG}echo "${ADDITIONAL_ZOOKEEPER_9}" >> ${ZOO_CONFIG}echo "${ADDITIONAL_ZOOKEEPER_10}" >> ${ZOO_CONFIG}echo "${ADDITIONAL_ZOOKEEPER_11}" >> ${ZOO_CONFIG}# Start Zookeeperexec /data/zookeeper-3.4.11/bin/zkServer.sh start-foreground

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:部署Swarm
下一篇:OpenFeign在传递参数为对象类型是为空的问题
相关文章

 发表评论

暂时没有评论,来抢沙发吧~