Skip to content

Commit de61929

Browse files
author
Topi Paavilainen
committed
moved solr configurations from Dockerfile to start.sh
1 parent 9cda5b1 commit de61929

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Dockerfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ RUN /etc/init.d/postgresql start &&\
4545
USER root
4646

4747

48-
### SOLR ###
49-
50-
RUN ./manage.py build_solr_schema > schema.xml
51-
RUN cp schema.xml apache-solr-3.6.2/example/solr/conf/
52-
RUN cp apache-solr-3.6.2/example/solr/conf/stopwords.txt apache-solr-3.6.2/example/solr/conf/stopwords_en.txt
53-
RUN export PATH=$PATH:/apache-solr-3.6.2/example/solr/conf/
54-
55-
5648
EXPOSE 8000
5749
COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
5850

docker/start.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
22

3+
./manage.py build_solr_schema > schema.xml
4+
cp schema.xml apache-solr-3.6.2/example/solr/conf/
5+
cp apache-solr-3.6.2/example/solr/conf/stopwords.txt apache-solr-3.6.2/example/solr/conf/stopwords_en.txt
6+
export PATH=$PATH:/apache-solr-3.6.2/example/solr/conf/
7+
38
/etc/init.d/postgresql start &&\
49
./manage.py migrate --noinput &&\
510
./manage.py datamigrate &&\

0 commit comments

Comments
 (0)