File tree Expand file tree Collapse file tree 3 files changed +17
-11
lines changed
Expand file tree Collapse file tree 3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ RUN apt-get install -y \
2323
2424RUN ln -s /usr/bin/nodejs /usr/bin/node
2525
26+ RUN apt-get install -y wget unzip
27+ RUN wget -q http://archive.apache.org/dist/lucene/solr/3.6.2/apache-solr-3.6.2.zip
28+ RUN unzip apache-solr-3.6.2.zip
2629
2730# ## DEPENDENCIES ###
2831
@@ -40,24 +43,17 @@ RUN /etc/init.d/postgresql start &&\
4043 psql --command 'CREATE USER root;' &&\
4144 createdb -O root fum
4245USER root
43- RUN /etc/init.d/postgresql start &&\
44- ./manage.py migrate --noinput &&\
45- ./manage.py datamigrate &&\
46- ./manage.py collectstatic --noinput
4746
4847
4948# ## SOLR ###
5049
51- RUN apt-get install -y wget unzip
52- RUN wget -q http://archive.apache.org/dist/lucene/solr/3.6.2/apache-solr-3.6.2.zip
53- RUN unzip apache-solr-3.6.2.zip
5450RUN ./manage.py build_solr_schema > schema.xml
5551RUN cp schema.xml apache-solr-3.6.2/example/solr/conf/
5652RUN cp apache-solr-3.6.2/example/solr/conf/stopwords.txt apache-solr-3.6.2/example/solr/conf/stopwords_en.txt
5753RUN export PATH=$PATH:/apache-solr-3.6.2/example/solr/conf/
5854
5955
60- EXPOSE 8080
56+ EXPOSE 8000
6157COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
6258
63- CMD ["/usr/bin/supervisord " , "-c" , "/etc/supervisor/supervisord.conf " ]
59+ CMD ["bash " , "start.sh " ]
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ /etc/init.d/postgresql start && \
4+ ./manage.py migrate --noinput && \
5+ ./manage.py datamigrate && \
6+ ./manage.py collectstatic --noinput
7+
8+ /etc/init.d/postgresql stop
9+
10+ /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
Original file line number Diff line number Diff line change 22nodaemon=true
33
44[program:fum]
5- command: ./manage.py runserver --nostatic 0.0.0.0:8080
5+ command: ./manage.py runserver --nostatic 0.0.0.0:8000
66environment=REMOTE_USER="emkos_test01"
77
88[program:postgres]
9- command: service postgresql restart
9+ command: /etc/init.d/ postgresql start
1010
1111[program:solr]
1212command: java -jar start.jar
You can’t perform that action at this time.
0 commit comments