Dockerfile for kcmerrill/moxi:
FROM centos:centos6
RUN yum update -y && yum install wget -y && yum clean all
RUN wget http://packages.couchbase.com/releases/2.5.0/moxi-server_2.5.0_x86_64.rpm
RUN rpm --install moxi-server_2.5.0_x86_64.rpm
EXPOSE 11211
ENTRYPOINT /etc/init.d/moxi-server start && \
while ps aux | grep moxi-server | grep -v grep ; do sleep 5; done
You can do one of two things. You can use this image with a valid volume mount. To do so create a folder, drop in a file named "moxi-cluster.cfg" and run the following:
docker run -d -p 11211:11211 -v $PWD:/opt/moxi/etc/ --name=moxi kcmerrill/moxi
Or, better yet! You can build your own image off this, an example file would be:
FROM kcmerrill/moxi
COPY moxi-cluster.cfg /opt/moxi/etc/moxi-cluster.cfg
Content type
Image
Digest
sha256:4e3f56477…
Size
83.4 MB
Last updated
almost 11 years ago
docker pull kcmerrill/moxi