Revision 740fa994 Dockerfile

View differences:

Dockerfile
1
# http://phusion.github.io/baseimage-docker/
2
FROM phusion/baseimage:0.9.22
1
FROM debian:stable-slim
2
MAINTAINER Luca Baldesi <luca.baldesi@unitn.it>
3 3

  
4
# Use baseimage-docker's init system.
5
CMD ["/sbin/my_init"]
4
# Install supervisord and automatic upgrade stuff
5
RUN apt-get update \
6
 && apt-get install -y supervisor unattended-upgrades cron \
7
 && rm -rf /var/lib/apt/lists/*
6 8

  
7 9
# Set /peerstreamer as working directory
8 10
WORKDIR /peerstreamer
......
29 31
RUN rm -rf /peerstreamer/serf-python
30 32

  
31 33
# Build peerstreamer
32
RUN git clone -b webrtp \
34
RUN git clone -b devel \
33 35
        https://ans.disi.unitn.it/redmine/peerstreamer-src.git \
34 36
            peerstreamer
35 37
RUN cd /peerstreamer/peerstreamer && make
......
38 40
RUN git clone \
39 41
        https://ans.disi.unitn.it/redmine/psng-pyserf.git \
40 42
            psng-pyserf
43
RUN chmod +x psng-pyserf/psng-pyserf.py
41 44

  
42 45
RUN apt remove -y git automake \
43 46
        && apt autoremove -y
44 47

  
45
# Create script for running psng-pyserf service
46
RUN mkdir /etc/service/psng-pyserf
47
ADD psng-pyserf.sh /etc/service/psng-pyserf/run
48

  
49
# Create script for running peerstreamer
50
RUN mkdir /etc/service/peerstreamer
51
ADD peerstreamer.sh /etc/service/peerstreamer/run
52

  
53 48
# Clean up APT when done.
54 49
RUN apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
50

  
51
COPY supervisord.conf /etc/supervisor/supervisord.conf
52
COPY cron-supervisord.conf /etc/supervisor/conf.d/cron.conf
53
COPY psng-supervisord.conf /etc/supervisor/conf.d/psng.conf
54
COPY pyserf-supervisord.conf /etc/supervisor/conf.d/pyserf.conf
55

  
56
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]

Also available in: Unified diff