GithubHelp home page GithubHelp logo

kamailio / pkg-kamailio-docker Goto Github PK

View Code? Open in Web Editor NEW
15.0 10.0 17.0 372 KB

Docker files to easily build Kamailio on different Debian/Ubuntu releases

License: GNU General Public License v3.0

Makefile 56.75% Shell 34.80% Dockerfile 8.45%
kamailio dockerfiles debian

pkg-kamailio-docker's Introduction

Description

Docker Debian based Images with dependencies installed, ready to be used to build Kamailio from sources

Upgrade

You need the kamailio sources at src so get them:

git clone https://github.com/kamailio/kamailio.git src

or refresh them:

make pull

and just

make

build locally the image

for instance:

export DIST=bullseye VERSION=master
cd ${DIST}; docker build --tag=pkg-kamailio-docker:${VERSION}-${DIST} .

or pull the image from Github Packages

docker pull ghcr.io/kamailio/pkg-kamailio-docker:${VERSION}-${DIST}

run container

If you built the docker image locally:

IMAGE=pkg-kamailio-docker

or if you've pulled it from Github Packages:

IMAGE=ghcr.io/kamailio/pkg-kamailio-docker

Then, in all cases, go to the root folder of your kamailio source code and launch the container:

docker run -i -t --rm -v `pwd`:/code:rw ${IMAGE}:${VERSION}-${DIST} /bin/bash

To build kamailio against Debian stable using that container, run:

cd /code
make deb-stable

pkg-kamailio-docker's People

Contributors

cstar avatar dependabot[bot] avatar linuxmaniac avatar sergey-safarov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pkg-kamailio-docker's Issues

Building kamailio master on debian bullseye

Hey,

I've created the docker image locally as per the README:

export DIST=bullseye VERSION=master
cd ${DIST}; docker build --tag=pkg-kamailio-docker:${VERSION}-${DIST} .

I then switch to my kamailio source dir and do

docker run -i -t --rm -v `pwd`:/code:rw pkg-kamailio-docker:${VERSION}-${DIST} /bin/bash

(compared to the README, i had to remove the /src after the pwd, otherwise it won't work at all?)

Then I try to build it, but it fails with dh-systemd missing:

root@7555ecc37611:/# cd /code
root@7555ecc37611:/code# make deb-stable
make -C src/ deb-stable
make[1]: Entering directory '/code/src'
generating core/autover.h ...
(cd ..; \
if [ -d debian ]; then \
	dpkg-buildpackage -rfakeroot -tc -uc -us; \
	rm debian; \
else \
	ln -s pkg/kamailio/deb/buster debian; \
	dpkg-buildpackage -rfakeroot -tc -uc -us; \
	rm debian; \
fi)
dpkg-buildpackage: info: source package kamailio
dpkg-buildpackage: info: source version 5.7.0~dev1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Victor Seva <[email protected]>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
dpkg-checkbuilddeps: error: Unmet build dependencies: dh-systemd (>= 1.5)
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
make[1]: Leaving directory '/code/src'
root@7555ecc37611:/code#

If I just build deb, it fails with libnats-dev missing:

root@7555ecc37611:/code# make deb
make -C src/ deb
make[1]: Entering directory '/code/src'
(cd ..; \
if [ -d debian ]; then \
	dpkg-buildpackage -rfakeroot -tc -uc -us; \
	rm debian; \
else \
	ln -s pkg/kamailio/deb/sid debian; \
	dpkg-buildpackage -rfakeroot -tc -uc -us; \
	rm debian; \
fi)
dpkg-buildpackage: info: source package kamailio
dpkg-buildpackage: info: source version 5.7.0~dev1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Victor Seva <[email protected]>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
dpkg-checkbuilddeps: error: Unmet build dependencies: libnats-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
make[1]: Leaving directory '/code/src'
root@7555ecc37611:/code#

Am I missing something?

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.