Skip to content

Commit 96cc20d

Browse files
committed
Added Dockerfile and the files it needed
1 parent d58eccf commit 96cc20d

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git

Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM ubuntu:14.04
2+
MAINTAINER Luca Versari <[email protected]>
3+
RUN apt-get update
4+
RUN apt-get -y install build-essential fpc postgresql postgresql-client gettext python2.7 python-setuptools python-tornado python-psycopg2 python-sqlalchemy python-psutil python-netifaces python-crypto python-tz python-six iso-codes shared-mime-info stl-manual python-beautifulsoup python-mechanize python-coverage python-mock cgroup-lite python-requests python-werkzeug python-gevent python-yaml python-sphinx
5+
RUN apt-get install -y openssh-server supervisor
6+
RUN mkdir -p /var/run/sshd /var/log/supervisor
7+
COPY examples/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
8+
RUN echo "root:annibale | chpasswd"
9+
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
10+
CMD /usr/bin/supervisord
11+
EXPOSE 22 8888 8889 8890
12+
ADD . /cms
13+
RUN cd /cms && ./setup.py build && ./setup.py install && rm -rf /cms

examples/supervisord.conf

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[supervisord]
2+
nodaemon=true
3+
4+
[program:sshd]
5+
command=/usr/sbin/sshd -D
6+
7+
[program:cmsLogService]
8+
command=cmsLogService
9+
directory=/var/local/log/cms/
10+
autorestart=true
11+
user=cmsuser
12+
stdout_logfile=/var/local/log/cms/cmsLogService.log
13+
redirect_stderr=true
14+
stopasgroup=true
15+
stopsignal=STOP
16+
17+
[program:cmsResourceService]
18+
command=cmsResourceService
19+
directory=/var/local/log/cms/
20+
autorestart=true
21+
user=cmsuser
22+
stdout_logfile=/var/local/log/cms/cmsResourceService.log
23+
redirect_stderr=true
24+
stopasgroup=true
25+
stopsignal=STOP
26+
27+
[program:cmsRankingWebServer]
28+
command=cmsRankingWebServer
29+
directory=/var/local/log/cms/
30+
autorestart=true
31+
user=cmsuser
32+
stdout_logfile=/var/local/log/cms/cmsRankingWebServer.log
33+
redirect_stderr=true
34+
stopasgroup=true
35+
stopsignal=STOP
36+

0 commit comments

Comments
 (0)