-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
26 lines (17 loc) · 1.3 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM phusion/baseimage:0.9.16
MAINTAINER George Vagenas - [email protected]
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN locale-gen en_US en_US.UTF-8 && dpkg-reconfigure locales
RUN apt-get update && apt-get install -y screen wget ipcalc bsdtar openjdk-7-jre-headless && apt-get autoremove && apt-get autoclean && rm -rf /var/lib/apt/lists/*
#Using the `wget -qO- https://mobicents.ci.cloudbees.com/view/RestComm/job/RestComm/lastSuccessfulBuild/artifact/restcomm-version.txt | cat` we will get the version of the latest binary build
RUN wget -qc https://mobicents.ci.cloudbees.com/view/RestComm/job/RestComm/lastSuccessfulBuild/artifact/Mobicents-Restcomm-JBoss-AS7-`wget -qO- https://mobicents.ci.cloudbees.com/view/RestComm/job/RestComm/lastSuccessfulBuild/artifact/restcomm-version.txt | cat`.zip -O- | bsdtar -xvf - -C /opt/ && mv /opt/Mobicents-Restcomm-JBoss-AS7-*/ /opt/Mobicents-Restcomm-JBoss-AS7/
EXPOSE 5080/udp
EXPOSE 5080/tcp
EXPOSE 5082/tcp
EXPOSE 8080/tcp
EXPOSE 65000-65535/udp
#VOLUME /opt/restcomm_workspace
RUN mkdir /etc/service/restcomm
ADD ./restcomm_service.sh /etc/service/restcomm/run
#RUN rm /opt/Mobicents-Restcomm-JBoss-AS7/bin/restcomm/start-restcomm.sh
#ADD ./start-restcomm.sh /opt/Mobicents-Restcomm-JBoss-AS7/bin/restcomm/start-restcomm.sh