Sign inSign up

moody1511/asterisk

By moody1511

•Updated about 4 years ago

Image with asterisk 18.13.0

Image
0

78

moody1511/asterisk repository overview

⁠Dockerfile
FROM ubuntu:20.04
WORKDIR /asteriskcompile
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/warsaw
RUN apt update && apt install -y \
    bison \
    wget \
    openssl \ 
    libssl-dev \
    libasound2-dev \
    libc6-dev \
    libxml2-dev \
    libsqlite3-dev \
    libnewt-dev \
    libncurses5-dev \
    zlib1g-dev \
    gcc \
    g++ \
    make \ 
    perl \
    uuid-dev \
    git \
    subversion \
    libjansson-dev \
    unixodbc-dev \
    unixodbc \
    autoconf \
    libedit-dev

RUN wget https://github.com/asterisk/asterisk/archive/refs/tags/18.13.0.tar.gz && \
    tar -xvf 18.13.0.tar.gz && \
    cd asterisk-18.13.0 && \
    ./configure && \
    make && \
    make install && \
    make config && \
    make samples

RUN rm -rf /asteriskcompile

CMD ["asterisk","-c"]
⁠First use
docker run --rm -it moody1511/asterisk:|architecturetag| bash
docker cp |containerid|:/etc/asterisk .

Copy default config files from container to host working directory

⁠For x86_64 / amd64
docker run -d --rm -v $(pwd)/asterisk:/etc/asterisk -p 5060:5060/udp --name asterisk moody1511/asterisk:x86_64
⁠docker-compose.yaml
services:
  asterisk:
    image: moody1511/asterisk:x86_64
    container_name: asterisk
    ports:
    - 5060:5060/udp
    restart: always
    volumes:
      - './asterisk:/etc/asterisk'
⁠For arm64
docker run -d --rm -v $(pwd)/asterisk:/etc/asterisk -p 5060:5060/udp --name asterisk moody1511/asterisk:arm64
⁠docker-compose.yaml
services:
  asterisk:
    image: moody1511/asterisk:arm64
    container_name: asterisk
    ports:
    - 5060:5060/udp
    restart: always
    volumes:
      - './asterisk:/etc/asterisk'

Tag summary

Content type

Image

Digest

sha256:0a00ea552…

Size

495.5 MB

Last updated

about 4 years ago

docker pull moody1511/asterisk:arm64