Skip to content

Commit e731ac0

Browse files
author
Topi Paavilainen
committed
vagrant-related files removed, docker-related files moved to docker/
1 parent ca3d1a5 commit e731ac0

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ RUN export PATH=$PATH:/apache-solr-3.6.2/example/solr/conf/
5454

5555

5656
EXPOSE 8000
57-
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
57+
COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
5858

59-
CMD ["bash", "start.sh"]
59+
CMD ["bash", "docker/start.sh"]

docker/start.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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

docker/supervisord.conf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[supervisord]
2+
nodaemon=true
3+
4+
[program:fum]
5+
command: ./manage.py runserver --nostatic 0.0.0.0:8000
6+
environment=REMOTE_USER="emkos_test01"
7+
8+
[program:postgres]
9+
command: /etc/init.d/postgresql start
10+
11+
[program:solr]
12+
command: java -jar start.jar
13+
directory: /opt/app/apache-solr-3.6.2/example/
14+
environment=PATH=$PATH:/opt/app/apache-solr-3.6.2/example/solr/conf/

0 commit comments

Comments
 (0)