Skip to content

linuxmaniac/pkg-kamailio-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

description

Docker Debian based Images with dependences installed ready to be used to build Kamailio from sources

get Kamailio source

git clone https://github.com/kamailio/kamailio.git

usage

Example with squeeze

pull docker images

We are going to use another container for mysql server

docker pull mysql:latest

Our image for squeeze

docker pull linuxmaniac/pkg-kamailio-docker:squeeze

run containers

First run mysql container

docker run --name kamailio-mysql -e MYSQL_ROOT_PASSWORD=secretpw -d mysql:latest

Now we can link mysql container to ours. The kamailio-mysql server is now available as mysql This asumes that Kamailio git sources are in $(pwd)

docker run --name kamailio-dev-squeeze -i -t -p 127.0.0.1:5060:5060/udp \
 -v $(pwd):/code:rw \
 --link kamailio-mysql:mysql linuxmaniac/pkg-kamailio-docker:squeeze bash

I usually keep my tests config on another directory so I can use it like:

docker run --name kamailio-dev-squeeze -i -t -p 127.0.0.1:5060:5060/udp \
 -v $(pwd):/code:rw -v $(pwd)/../kamailio_dev:/kamailio_dev \
 --link kamailio-mysql:mysql linuxmaniac/pkg-kamailio-docker:squeeze bash

there is a helper script at scripts/docker_kamdev.sh to make this easier:

./scripts/docker_kamdev.sh --help

Running jessie with a mysql container is just:

./scripts/docker_kamdev.sh --start-mysql --dist jessie

About

Dockerfiles to easily build kamailio on different Debian releases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published