Skip to content

Latest commit

 

History

History
50 lines (27 loc) · 2.15 KB

build_and_run_instructions.md

File metadata and controls

50 lines (27 loc) · 2.15 KB

Restcomm Docker image build instructions

Maintainer George Vagenas - [email protected]

Restcomm binds to the ip address of the host and following ports:

  • http: 8080
  • sip/udp: 5080
  • sip/tcp: 5080
  • rtp/udp: 65000 - 65535

Prerequisites

This image was tested with Docker 1.6

Build

To build the image:

First git clone this repository and then:

docker build -t gvagenas/restcomm:latest -f Dockerfile .

Make sure you don't skip the dot (.) at the end of the command

Run

Download the restcomm_workspace that contains the default database, default RVD workspace and the required folders and unzip it to a folder in your filesystem.

Next run Restcomm image using the following volume arguments:

docker run --name=rc --restart=always -d -e VOICERSS_KEY="YOUR_VOICESS_KEY_HERE" -p 8080:8080 -p 5080:5080 -p 5080:5080/udp -p 65000-65535/udp -v $YOUR_FOLDER/restcomm_workspace/restcomm/log:/opt/Mobicents-Restcomm-JBoss-AS7/standalone/log -v $YOUR_FOLDER/restcomm_workspace/restcomm/recordings:/opt/Mobicents-Restcomm-JBoss-AS7/standalone/deployments/restcomm.war/recordings -v $YOUR_FOLDER/restcomm_workspace/restcomm/cache:/opt/Mobicents-Restcomm-JBoss-AS7/standalone/deployments/restcomm.war/cache -v $YOUR_FOLDER/restcomm_workspace/restcomm/data:/opt/Mobicents-Restcomm-JBoss-AS7/standalone/deployments/restcomm.war/WEB-INF/data/hsql -v $YOUR_FOLDER/restcomm_workspace/mms/log:/opt/Mobicents-Restcomm-JBoss-AS7/mediaserver/log -v $YOUR_FOLDER/restcomm_workspace/rvd/workspace:/opt/Mobicents-Restcomm-JBoss-AS7/standalone/deployments/restcomm-rvd.war/workspace gvagenas/restcomm:latest

To get bash console (for debugging only)

You can start the container and get a bash console to manually setup Restcomm and test it using the following command:

docker run --name=restcomm --entrypoint=/bin/bash -it -p 8080:8080 -p 5080:5080 -p 5080:5080/udp gvagenas/restcomm:latest

To get container logs

docker logs restcomm

To execute a command at the container

docker exec rc [command]

For example

docker exec rc ps -ef | grep java