Asterisk in Docker: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Brian Wilson (talk | contribs)
mNo edit summary
Line 5: Line 5:
== Building a docker container ==
== Building a docker container ==


I cloned the github respoke asterisk image as my starting point.
I started with the github respoke asterisk image as my starting point.


  git clone [email protected]:respoke/asterisk-docker.git
  git clone [email protected]:respoke/asterisk-docker.git


I turned off the line to not BUILD_NATIVE in build-asterisk.sh
Then I broke it out into two parts, so that it would build faster.
I have a Debian Stretch container wildsong/build that has all the
tools in it.
 
cd Projects/docker/docker-asterisk
docker rm -f asterisk
docker build -t asterisk .
docker run -it --net=host --expose=10000-10101 --name=asterisk asterisk
docker exec -it asterisk asterisk -r
tcpdump -n not port 22 and not arp and not host 192.168.123.159


I commented out the line that deletes the source files, so I can look at them.


== Configuration ==
== Configuration ==

Revision as of 03:18, 5 April 2018

Read the Docker page if you don't know what Docker is.

Notes on building a current executable, the old way: Building Asterisk

Building a docker container

I started with the github respoke asterisk image as my starting point.

git clone [email protected]:respoke/asterisk-docker.git

Then I broke it out into two parts, so that it would build faster. I have a Debian Stretch container wildsong/build that has all the tools in it.

cd Projects/docker/docker-asterisk
docker rm -f asterisk
docker build -t asterisk .
docker run -it --net=host --expose=10000-10101 --name=asterisk asterisk
docker exec -it asterisk asterisk -r
tcpdump -n not port 22 and not arp and not host 192.168.123.159


Configuration

Put environment settings into Dockerfile and add j2 config files that I created for Fogg.