mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
9cf29be0ee
From the -f description: (HTTP) Fail silently (no output at all) on server errors. This is mostly done to better enable scripts etc to better deal with failed attempts. In normal cases when an HTTP server fails to deliver a document, it returns an HTML document stating so (which often also describes why and more). This flag will prevent curl from outputting that and return error 22. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
31 lines
1,003 B
Docker
31 lines
1,003 B
Docker
# Riak
|
|
#
|
|
# VERSION 0.1.1
|
|
|
|
# Use the Ubuntu base image provided by dotCloud
|
|
FROM ubuntu:trusty
|
|
MAINTAINER Hector Castro hector@basho.com
|
|
|
|
# Install Riak repository before we do apt-get update, so that update happens
|
|
# in a single step
|
|
RUN apt-get install -q -y curl && \
|
|
curl -fsSL https://packagecloud.io/install/repositories/basho/riak/script.deb | sudo bash
|
|
|
|
# Install and setup project dependencies
|
|
RUN apt-get update && \
|
|
apt-get install -y supervisor riak=2.0.5-1
|
|
|
|
RUN mkdir -p /var/log/supervisor
|
|
|
|
RUN locale-gen en_US en_US.UTF-8
|
|
|
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
|
|
# Configure Riak to accept connections from any host
|
|
RUN sed -i "s|listener.http.internal = 127.0.0.1:8098|listener.http.internal = 0.0.0.0:8098|" /etc/riak/riak.conf
|
|
RUN sed -i "s|listener.protobuf.internal = 127.0.0.1:8087|listener.protobuf.internal = 0.0.0.0:8087|" /etc/riak/riak.conf
|
|
|
|
# Expose Riak Protocol Buffers and HTTP interfaces
|
|
EXPOSE 8087 8098
|
|
|
|
CMD ["/usr/bin/supervisord"]
|