fulljackz / docker-build-asterisk

Debian set up with build tools for Asterisk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-build-asterisk

Asterisk 18.10.1 built on Debian Bullseye

The intent of this project is to function as the base for another Docker that will actually use jinja2 templates to configure and run Asterisk in a container.

My projects were forked from the respoke/asterisk github repo so I could use newer Debian and Asterisk versions.

This image will contain Asterisk built from source code but does not run it, I do that in a separate Dockerfile to control all the configuration.

Build

The build is done in Docker now, then pushed to Docker Hub. But if you want, you can build locally with

    docker build -t wildsong/asterisk .

Usage

Include in a Dockerfile, like this

FROM wildsong/asterisk:latest

or fork the github project if you want more control

git clone https://github.com/wildsong/docker-build-asterisk.git
cd docker-build-asterisk
docker build -t build-asterisk .

Using environment variables and templates

The entrypoint of this image looks for any Jinja2 templates in /etc/asterisk/ and processes them, replacing variables with the environment variable of the same name. If you use this image as the base for your own Dockerfile, you can add Jinja2 templates to the /etc/asterisk/ directory with the file extension .j2 and they will be processed. See the Official Jinja2 Template Designer Documentation for details on the template syntax.

Running

You can do this but it's pointless because the asterisk will be unconfigured. Pull wildsong/asterisk into your own Dockerfile.

Repo tags

All I have so far is the "latest".

License

MIT

The original works are here

github/asterisk
dockerhub respoke/asterisk
Official Jinja2 Template Designer Documentation

Changes for Asterisk 18.10.1

Changed the Asterisk version number.
Added the LICENSE file.
Added the build and Docker Hub upload action. Builds happen in Github now.

Changes for Asterisk 18.9

Changed the Asterisk version number.
Changed from python-pip to python3-pip.
Removed the libsrtp0-dev, this is probably a mistake but that package no longer exists.

Changes for Asterisk 16.

Changed Asterisk version number in Dockerfile.
Removed libjansson-dev package. It's too old.
Added '--with-jansson-bundle' in build-asterisk.sh

About

Debian set up with build tools for Asterisk

License:MIT License


Languages

Language:Dockerfile 92.4%Language:Shell 7.6%