forked from docker-archive/tutum-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (18 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
22 lines (18 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM tutum/curl:trusty
MAINTAINER FENG, HONGLIN <hfeng@tutum.co>
RUN curl http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add - && \
echo 'deb http://packages.elasticsearch.org/elasticsearch/1.3/debian stable main' >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y elasticsearch openjdk-7-jre-headless && \
apt-get install -y nginx supervisor apache2-utils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV ELASTICSEARCH_USER **None**
ENV ELASTICSEARCH_PASS **None**
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD run.sh /run.sh
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
ADD nginx_default /etc/nginx/sites-enabled/default
RUN chmod +x /*.sh
EXPOSE 9200
CMD ["/run.sh"]