CentOS zookeeper dockerfile
DockerFile:
FROM centos:7
RUN yum -y install vim lsof wget tar bzip2 unzip vim-enhanced passwd sudo yum-utils hostname net-tools rsync man git make automake cmake patch logrotate python-devel libpng-devel libjpeg-devel pwgen python-pip
RUN mkdir /opt/java &&\
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.tar.gz -P /opt/java
RUN tar zxvf /opt/java/jdk-8u102-linux-x64.tar.gz -C /opt/java &&\
JAVA_HOME=/opt/java/jdk1.8.0_102 &&\
sed -i "/^PATH/i export JAVA_HOME=$JAVA_HOME" /root/.bash_profile &&\
sed -i "s%^PATH.*$%&:$JAVA_HOME/bin%g" /root/.bash_profile &&\
source /root/.bash_profile
ENV ZOOKEEPER_VERSION "3.4.6"
RUN mkdir /opt/zookeeper &&\
wget http://mirror.olnevhost.net/pub/apache/zookeeper/zookeeper-$ZOOKEEPER_VERSION/zookeeper-$ZOOKEEPER_VERSION.tar.gz -P /opt/zookeeper
RUN tar zxvf /opt/zookeeper/zookeeper*.tar.gz -C /opt/zookeeper
RUN echo "source /root/.bash_profile" > /opt/zookeeper/start.sh &&\
echo "cp /opt/zookeeper/zookeeper-"$ZOOKEEPER_VERSION"/conf/zoo_sample.cfg /opt/zookeeper/zookeeper-"$ZOOKEEPER_VERSION"/conf/zoo.cfg" >> /opt/zookeeper/start.sh &&\
echo "/opt/zookeeper/zookeeper-$"ZOOKEEPER_VERSION"/bin/zkServer.sh start-foreground" >> /opt/zookeeper/start.sh
EXPOSE 2181
ENTRYPOINT ["sh", "/opt/zookeeper/start.sh"]
build:
docker build -t jiankunking/zookeeper:3.4.6 -f zookeeper.Dockerfile .
作者:jiankunking 出處:http://blog.csdn.net/jiankunking
相關文章
- CentOS kafka dockerfileCentOSKafkaDocker
- centos下安裝ZooKeeperCentOS
- fs.1.10 ON CENTOS7 dockerfile模式CentOSDocker模式
- centos7 vim 編輯Dockerfile顯示高亮CentOSDocker
- 【Linux】Centos7.6 安裝ZookeeperLinuxCentOS
- CentOS6.5 安裝Zookeeper叢集CentOS
- 使用Dockerfile建立帶Apache服務的Centos Docker映象DockerApacheCentOS
- CentOS上zookeeper叢集模式安裝配置CentOS模式
- centOS安裝zookeeper3.4.6(分散式模式)CentOS分散式模式
- centos7下zookeeper叢集安裝部署CentOS
- CentOS6.5安裝zookeeper-3.4.5(單機)CentOS
- Docker 入門系列四:Dockerfile-自定義 CentOS7 映象DockerCentOS
- DockerfileDocker
- 在 CentOS7 上安裝 zookeeper-3.4.9 服務CentOS
- Dockerfile技巧Docker
- Docker DockerfileDocker
- 一個dockerfile例子(參考著寫dockerfile)Docker
- Zookeeper-Zookeeper clientclient
- Dockerfile入門(使用Dockerfile生成jdk1.8映象)DockerJDK
- dockerfile 語法Docker
- Dockerfile編寫Docker
- Dockerfile常用指令Docker
- 編寫DockerFileDocker
- Dockerfile入門Docker
- Dockerfile詳解Docker
- Dockerfile建立映象Docker
- Dockerfile筆記Docker筆記
- Dockerfile學習Docker
- 【zookeeper】zookeeper分散式鎖分散式
- 【Zookeeper】zookeeper叢集安裝
- CentOS 6.5下ZooKeeper3.4.6叢集環境部署及單機部署詳解CentOS
- Docker 入門:DockerfileDocker
- Docker_07 DockerfileDocker
- [Dockerfile構建映象]Docker
- DockerFile構建映象Docker
- Dockerfile 命令詳解Docker
- Docker的Dockerfile指令Docker
- Docker學習—DockerFileDocker