#!/bin/bash kam_packages() { # we have a dependency problem on db5.1-util so do not install berkeley modules for now wget -O- "http://deb.kamailio.org/kamailio${kam_version}/dists/${dist}/main/binary-amd64/Packages" | \ awk -vver="${version}+${dist}" '/Package:/ { print $2"="ver}' | grep -v berkeley | xargs } create_dockerfile() { cat >"${DOCKERFILE}" < # Important! Update this no-op ENV variable when this Dockerfile # is updated with the current date. It will force refresh of all # of the base images and things like 'apt-get update' won't be using # old cached versions when the Dockerfile is built. ENV REFRESHED_AT ${DATE} EOF if [ -n "${archived}" ] ; then cat >>"${DOCKERFILE}" < \ /etc/apt/sources.list; \ echo "deb http://archive.debian.org/debian ${dist}-lts main" >> \ /etc/apt/sources.list ; \ echo "Acquire::Check-Valid-Until false;" >> /etc/apt/apt.conf EOF elif [ "${base}" = "debian" ] ; then cat >>"${DOCKERFILE}" <>"${DOCKERFILE}" < \ /etc/apt/sources.list.d/kamailio.list RUN wget -O- http://deb.kamailio.org/kamailiodebkey.gpg | apt-key add - EOF cat >>"${DOCKERFILE}" <