# Clone the repository
git clone https://github.com/c0rnoTa/asterisk-alpine
# Download asterisk sources to `src` direcotry
cd asterisk-alpine/src
wget https://downloads.asterisk.org/pub/telephony/certified-asterisk/asterisk-certified-13.21-cert3.tar.gz
# Run the composer
cd ..
docker-compose up
- Installing binutils
- Installing libmagic
- Installing file
- Installing gmp
- Installing isl
- Installing libgomp
- Installing libatomic
- Installing libgcc
- Installing mpfr3
- Installing mpc1
- Installing libstdc++
- Installing gcc
- Installing musl-dev
- Installing libc-dev
- Installing g++
- Installing make
- Installing fortify-headers
-
unixodbc-dev - UnixODBC package
- Installing ncurses-dev
- Installing readline
- Installing unixodbc
- Installing unixodbc-dev
-
psqlodbc - PostgreSQL ODBC connector
- Installing db
- Installing libsasl
- Installing libldap
- Installing libpq
- Installing psqlodbc
-
NOT USED git - Build MariaDB dependencies
- Installing ca-certificates (20190108-r0)
- Installing nghttp2-libs (1.35.1-r0)
- Installing libssh2 (1.8.0-r4)
- Installing libcurl (7.64.0-r1)
- Installing expat (2.2.6-r0)
- Installing pcre2 (10.32-r1)
- Installing git (2.20.1-r0)
-
NOT USED cmake - Compile ODBC
- (1/19) Installing libattr (2.4.47-r7)
- (2/19) Installing libacl (2.2.52-r5)
- (3/19) Installing libbz2 (1.0.6-r6)
- (4/19) Installing expat (2.2.6-r0)
- (5/19) Installing lz4-libs (1.8.3-r2)
- (6/19) Installing xz-libs (5.2.4-r0)
- (7/19) Installing libarchive (3.3.2-r4)
- (8/19) Installing ca-certificates (20190108-r0)
- (9/19) Installing nghttp2-libs (1.35.1-r0)
- (10/19) Installing libssh2 (1.8.0-r4)
- (11/19) Installing libcurl (7.64.0-r1)
- (12/19) Installing ncurses-terminfo-base (6.1_p20190105-r0)
- (13/19) Installing ncurses-terminfo (6.1_p20190105-r0)
- (14/19) Installing ncurses-libs (6.1_p20190105-r0)
- (15/19) Installing libgcc (8.2.0-r2)
- (16/19) Installing rhash-libs (1.3.6-r2)
- (17/19) Installing libstdc++ (8.2.0-r2)
- (18/19) Installing libuv (1.23.2-r0)
- (19/19) Installing cmake (3.13.0-r0)
-
libressl - SSL ODBC
- Installing libressl2.7-libcrypto
- Installing libressl2.7-libssl
- Installing libressl2.7-libtls
- Installing libressl
-
ncurses-dev - termcap support
- Installing ncurses-terminfo-base
- Installing ncurses-terminfo
- Installing ncurses-libs
- Installing pkgconf
- Installing ncurses-dev
-
util-linux-dev - uuid support
- Installing libuuid
- Installing libblkid
- Installing libfdisk
- Installing libmount
- Installing libsmartcols
- Installing util-linux-dev
-
jansson-dev - JSON support
- Installing jansson
- Installing jansson-dev
-
libxml2-dev - The Asterisk menuselect tool
- Installing zlib-dev
- Installing libxml2
- Installing libxml2-dev
-
sqlite-dev - Asterisk now uses SQLite3
- Installing sqlite-libs
- Installing sqlite-dev
-
bsd-compat-headers - sys/cdefs.h: No such file or directory
Installs patch
to apply musl and third-party patches.\
https://paulgorman.org/technical/asterisk-alpine-lxc.txt
https://issues.asterisk.org/jira/browse/ASTERISK-24154
Musl patches are:
- musl-glob-compat.patch - Fix ael.flex: error: 'GLOB_NOMAGIC' undeclared | ael.flex: error: 'GLOB_BRACE' undeclared
- musl-mutex-init.patch - PTHREAD_MUTEX_INITIALIZER should not be assumed to be recursive mutex
Third-party patches are:
- asterisk-addon-mp3-r201.patch - MP3 Decoder