comparison docker/salut/Dockerfile @ 83:8dd32aa49614

docker: pid files are put in /tmp to avoid conflict when restarting a container
author Goffi <goffi@goffi.org>
date Thu, 18 Feb 2016 17:19:50 +0100
parents 686a8c982c3f
children b69056368901
comparison
equal deleted inserted replaced
82:5824dee4ea2b 83:8dd32aa49614
24 os.chdir("/home/sat")\n\ 24 os.chdir("/home/sat")\n\
25 proxy = xmlrpclib.ServerProxy("http://prosody:9999/")\n\ 25 proxy = xmlrpclib.ServerProxy("http://prosody:9999/")\n\
26 for var in ("DOMAIN", "SAT_SALUT_SECRET"):\n\ 26 for var in ("DOMAIN", "SAT_SALUT_SECRET"):\n\
27 os.environ[var] = proxy.getenv(var)\n\ 27 os.environ[var] = proxy.getenv(var)\n\
28 os.environ["PYTHONPATH"] = SALUT_PATH\n\ 28 os.environ["PYTHONPATH"] = SALUT_PATH\n\
29 os.execlp("twistd", "twistd", "-ny", SALUT_PATH+"salut.tac")\n\ 29 os.execlp("twistd", "twistd", "-ny", SALUT_PATH+"salut.tac", "--pidfile", "/tmp/salut.pid")\n\
30 ' > /usr/local/bin/salut && chmod 0555 /usr/local/bin/salut 30 ' > /usr/local/bin/salut && chmod 0555 /usr/local/bin/salut
31 31
32 WORKDIR /usr/share 32 WORKDIR /usr/share
33 33
34 RUN hg clone https://repos.goffi.org/salut sat_salut && chown -R sat:sat sat_salut 34 RUN hg clone https://repos.goffi.org/salut sat_salut && chown -R sat:sat sat_salut