-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 loc) · 993 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Solr for Drupal development
#
# VERSION 1
# use the ubuntu base image provided by dotCloud
FROM ubuntu:trusty
MAINTAINER Simon Morvan [email protected]
# make sure the package repository is up to date
RUN echo "deb http://mir1.ovh.net/ubuntu trusty main restricted universe multiverse" > /etc/apt/sources.list
RUN echo "deb http://ftp.free.fr/mirrors/ftp.ubuntu.com/ubuntu trusty main restricted universe multiverse" >> /etc/apt/sources.list
RUN apt-get update
#RUN apt-get -y upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python-setuptools vim-tiny python-pip
RUN easy_install supervisor
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y solr-tomcat
RUN apt-get clean
ADD ./start.sh /start.sh
ADD ./foreground.sh /etc/tomcat6/foreground.sh
ADD ./supervisord.conf /etc/supervisord.conf
RUN mv /etc/solr/conf /etc/solr/conf-dist
ADD solr-conf /etc/solr/conf
RUN chmod 755 /start.sh /etc/tomcat6/foreground.sh
EXPOSE 8080
CMD ["/bin/bash", "/start.sh"]