вт, 26 сент. 2017 г. в 0:08, E. Schmidbauer <[email protected]>:

> wow, this is great, can't wait to try it out!
> one question though, the Dockerfile is using `scratch` but the folder
> structure indicates `alpine` (pkg/kamailio/alpine_docker)
> should this file path be renamed?
>

Image compilation is splited on two phases
pre_build - really getting sources and compiling using alpine image. Please
look
https://github.com/kamailio/kamailio/blob/master/pkg/kamailio/alpine_docker/hooks/pre_build
and docker docs https://docs.docker.com/docker-cloud/builds/advanced/. At
this stage created tar archive with filesystem image

And second stage where filesystem images is placed on scratch layer. This
allow separate build state where installed many development tools and image
creation where simple decompressed image filesystem.

Image really build using alpine linux dist. scratch layer used to create
minimal image with only required libs.

This image image also contains tcpdump and dumppcap tools. So you can easy
debug SIP traffic if you prefer to used docker bridge or swarm network.

Sergey
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to