Skip to content

Commit

Permalink
Incluindo arquivos de Docker e Supervisor
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiobatalha committed Aug 19, 2016
1 parent 5804e84 commit a34123a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ FROM python:3.5.2

MAINTAINER [email protected]

RUN apt-get update && apt-get install -y supervisor
RUN mkdir -p /var/log/supervisor

COPY requirements.txt /app/requirements.txt
COPY production.ini-TEMPLATE /app/production.ini-TEMPLATE
COPY docker/generate_production_ini.py /app/docker/generate_production_ini.py
Expand Down
8 changes: 8 additions & 0 deletions docker/supervisord.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[supervisord]
nodaemon=true

[program:publicationstats_api]
command=gunicorn --paste production.ini -w 4 -b 0.0.0.0

[program:publicationstats_thriftserver]
command=publicationstats_thriftserver --port 11620 --host 0.0.0.0
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ thriftpy==0.3.1
pyramid==1.5.7
-e git+https://github.com/scieloorg/[email protected]#egg=xylose
-e git+https://github.com/scieloorg/[email protected]#egg=thriftpywrap
-e git+https://github.com/scieloorg/publication_stats@docker#egg=publication_stats
-e git+https://github.com/scieloorg/publication_stats@0.6.5#egg=publication_stats

0 comments on commit a34123a

Please sign in to comment.