I started migrating my server where I run a ASL Hub and the Analog to Digital bridge to a docker architecture and I’m having issues getting ASL to run inside a container. The ASL installation completes without issues but after setting all the parameters the Asterisk doesn’t start.
I’m wondering if anyone has ASL running in a docker container already.
Hi Tim, it’s not that easy to do unfortunately. I’ve tried it and failed to compile. Using the repo is successful but… and this is massive but…systemd is not available in docker, (politics). It probably can be run in docker but it’s beyond my expertise. Not unless I throw some hours at it. Maybe someone will build a Dockerfile and a compose file one day. Who knows , thanks Tim keep up the good work! It’s amazing stuff! Looking forward to future developments
My experience was problems installing ASL-DAHDI. This was about a month ago, so I don’t have logs of the error I was getting, but I’ll try to summarize as best as I recall.
My host is Debian Bullseye. So I start with a base Debian Buster image. From there, I followed the instructions for installing ASL on buster. When it came to installing asl-dahdi, it would not install because the the kernel version being reported was my host’s kernel, not buster’s.
For this particular install, I ended up building ASL from source on the bare metal Bullseye. Aside from gathering a few dependencies, it was more-or-less straight forward.
So, I’m inclined to believe it is possible to run ASL in a container. But I would have LOVED a dockerfile / docker-compose file. This too is a bit out of my expertise level.
Don’t know if this info helped, other than to bump the topic.
73
cd /ASL-Asterisk/asterisk
./configure #finishes successfully
make # fatal error
The fatal error is:
../astver.h:55:10: fatal error: zaptel/tonezone.h: No such file or directory
#include <zaptel/tonezone.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [/ASL-Asterisk/asterisk/Makefile.rules:42: chan_voter.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/ASL-Asterisk/asterisk/channels'
make: *** [Makefile:361: channels] Error 2
Some googlefu suggests that dahdi replaced zaptel, so I figured I might try building asl-dahdi first… which leads to dead-end #2:
cd /ASL-DAHDI/
make
result:
make -C linux all
make[1]: Entering directory '/ASL-DAHDI/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory '/ASL-DAHDI/linux/drivers/dahdi/firmware'
make[2]: Leaving directory '/ASL-DAHDI/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 4.15.0-200-generic kernel installed.
make[1]: *** [Makefile:72: modules] Error 1
make[1]: Leaving directory '/ASL-DAHDI/linux'
make: *** [Makefile:9: all] Error 2
(Of course, I did apt-get install linux-headers-amd64 in the Dockerfile.) This was essentially the problem I had a month ago, and mentioned in the previous post. I may have solved the #1 problem a month ago, but I forgot how, if so.