Skip to content
This repository has been archived by the owner on May 27, 2019. It is now read-only.

Hey, could not run this in ubutu as it was, now it builds and runs. I also created an build script #6

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM ubuntu
FROM debian:8
RUN echo "deb http://files.freeswitch.org/repo/deb/debian/ jessie main" > /etc/apt/sources.list.d/99FreeSWITCH.test.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y --no-install-recommends build-essential autoconf automake libtool zlib1g-dev libjpeg-dev libncurses-dev libssl-dev libcurl4-openssl-dev python-dev libexpat-dev libtiff-dev libx11-dev wget git
RUN git clone -b v1.2.stable https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/local/src/freeswitch
RUN cd /usr/local/src/freeswitch; ./bootstrap.sh -j
RUN cd /usr/local/src/freeswitch; ./configure --prefix=/opt/freeswitch
RUN cd /usr/local/src/freeswitch; make; make install
RUN cd /usr/local/src/freeswitch; make all cd-sounds-install cd-moh-install
RUN wget -O - http://files.freeswitch.org/repo/deb/debian/key.gpg |apt-key add -
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pointless. See jchaney/owncloud#12

RUN apt-get update
RUN DEBIAN_FRONTEND=none APT_LISTCHANGES_FRONTEND=none apt-get install -y --force-yes freeswitch-video-deps-most
RUN git config --global pull.rebase true
RUN git clone https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch.git
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the --depth parameter. Also I suggest to pin the used version somehow to not use the latest master. Not sure how the testing policy of freeswitch is and if it is safe to use the latest master.

RUN cd freeswitch.git; ./bootstrap.sh -j; perl -i -pe 's/#applications\/mod_av/applications\/mod_av/g' modules.conf
RUN cd freeswitch.git; ./configure --prefix=/opt/freeswitch ; make; make cd-sounds-install cd-moh-install samples pymod install ;

29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
Forked from :
lucaspiller/docker-freeswitch (https://github.com/lucaspiller/docker-freeswitch)

Since I wasn't building for my ubuntu (14.10) laptop, I re-did the docker file
also added two scripts :
build_docker.sh and
run_docker.sh

Also, I'm pretty sure the information below also applies.

but I just wanted to set up an quick and dirty environment to play around.

you can configure Sip phones (or soft-clients) using the default conf:
users: 1000-1009
pass : 1234

the basic demos are working....

hope its useful



=-=-=-=-=-=-=-=-=: Original Readme Below :=-=-=-=-=-=-=-=-=




# Freeswitch for Docker

Docker image for Freeswitch telephony platform. Based upon Freeswitch 1.2.17.
Expand Down Expand Up @@ -75,4 +102,4 @@ Edit the configuration to ensure only these ports are used:

## Docker 0.7 bug

There is a bug with Docker 0.7.x that means a port cannot be opened for both TCP and UDP. There is [a fix](3435), but it hasn't yet been merged. As such it is recommended to run this on Docker 0.6.7.k
There is a bug with Docker 0.7.x that means a port cannot be opened for both TCP and UDP. There is [a fix](3435), but it hasn't yet been merged. As such it is recommended to run this on Docker 0.6.7.k
1 change: 1 addition & 0 deletions build_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build -t gps:docker-freeswitch .
1 change: 1 addition & 0 deletions run_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker run -d -p 5060:5060/tcp -p 5060:5060/udp -p 16384:16384/udp -p 16385:16385/udp -p 16386:16386/udp -p 16387:16387/udp -p 16388:16388/udp -p 16389:16389/udp -p 16390:16390/udp -p 16391:16391/udp -p 16392:16392/udp -p 16393:16393/udp -p 8021:8021 gps:docker-freeswitch /opt/freeswitch/bin/freeswitch