an image contains all distributed bin
372
This image is tested under docs/marathon, it mainly contains all the bookkeeper and distributed log Jars.
Here is the docker file:
cnenzhaijm1:bookkeeper zhaij$ cat Dockerfile FROM centos:6
MAINTAINER JiaZhai [email protected]
RUN yum update -y
&& yum -y install unzip
&& yum -y install java-1.8.0-openjdk-devel
&& yum clean all ENV JAVA_HOME /usr/lib/jvm/java-1.8.0 ENV PATH "$PATH":/${JAVA_HOME}/bin:.:#bookie port EXPOSE 3181 9001
#all execute-able bin, download from distributed_log COPY dl_all /opt/dl_all WORKDIR /opt/dl_all
#After container up, Following instructions to build bookie cluster #http://distributedlog.incubator.apache.org/docs/latest/deployment/cluster.html ENTRYPOINT ./entrypoint.sh
dl_all dir is downloaded from : https://github.com/twitter/distributedlog/releases/download/0.3.51-RC1/distributedlog-all-3ff9e33fa577f50eebb8ee971ddb265c971c3717.zip
then unzip it, 1, regarding the configuration file #cp distributedlog-service/conf/bookie.conf.template distributedlog-service/conf/bookie-1.conf change some paremeters: zkServers=master.mesos:2181 < === this is the default zookeeper master in dcos journalDirectory=/bk/journal < === these 3 dirs should align to the one that we use in dcos/marathon json description file. ledgerDirectories=/bk/ledgers indexDirectories=/bk/index
2, regarding the entrypoint.sh, this .sh mainly handle 2 things: a) check if bookkeeper metadata in zookeeper has been formated before, by checking whether the readonly dir is existed. If not, we should format the metadata. b) start a bookie.
3, this is the raw version, will add more config info in dockerfile.
Content type
Image
Digest
Size
314.6 MB
Last updated
almost 10 years ago
docker pull zhaijia/bookkeeper