Giter VIP home page Giter VIP logo

asterisk-alpine-docker's Introduction

asterisk-alpine-docker

Run Asterisk on Alpine Linux with Docker.
A fast and simple way to test a new configuration for your pbx or run with a simple configuration (e.g. at home).


how to use it

1.) BUILD the docker container

docker build -t asterisk-alpine-docker .

2.) RUN the container - with sample configuration / generate your own configuration

A) run with sample configuration

If you already have asterisk configuration files, then you can skip this step (go on with 3.).

docker run --name asterisk-alpine-docker-sample --net=host -d -t christianbecker/asterisk-alpine-docker

B) copy sample configuration to generate you own settings

To get started just copy the sample configuration from docker container to your own directory. The container can be deleted after this step.

docker cp asterisk-alpine-docker-sample:/etc/asterisk/. etc-asterisk/
docker stop asterisk-alpine-docker-sample
docker rm asterisk-alpine-docker-sample

Make your changes to files in "etc-asterisk" directory and use it as docker volume in a new container.


3.) RUN the container - with your own configuration in directory "etc-asterisk"

Run docker container with your own configuration and let docker restart it automatically if necessary.

docker run --name asterisk-alpine-docker --net=host -v $(pwd)/etc-asterisk/:/etc/asterisk/ -d -t --restart=always christianbecker/asterisk-alpine-docker

4.) USE the container

To simplify the management you can add the following aliases to .bash_aliases or .bashrc:

A) show the logs from asterisk console

alias astlog='docker logs -f --tail 20 asterisk-alpine-docker'

B) connect to asterisk cli

alias asterisk='docker exec -it asterisk-alpine-docker asterisk' 

Then simply use astlog or asterisk -r in bash console on docker host system.


project links

GitHub Docker Hub


Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

asterisk-alpine-docker's People

Contributors

christian-becker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.