[sr-dev] git:master:d98e7570: pkg/kamailio/alpine_docker: Docker args now passed to kamailio #1252

Sergey Safarov s.safarov at gmail.com
Sat Sep 30 14:23:27 CEST 2017


Module: kamailio
Branch: master
Commit: d98e7570c458fb4992c6e49395b099a09bb5e133
URL: https://github.com/kamailio/kamailio/commit/d98e7570c458fb4992c6e49395b099a09bb5e133

Author: Sergey Safarov <s.safarov at gmail.com>
Committer: Sergey Safarov <s.safarov at gmail.com>
Date: 2017-09-30T05:40:17-04:00

pkg/kamailio/alpine_docker: Docker args now passed to kamailio #1252

---

Modified: pkg/kamailio/alpine_docker/Dockerfile
Modified: pkg/kamailio/alpine_docker/README.md
Removed: pkg/kamailio/alpine_docker/entrypoint.sh

---

Diff:  https://github.com/kamailio/kamailio/commit/d98e7570c458fb4992c6e49395b099a09bb5e133.diff
Patch: https://github.com/kamailio/kamailio/commit/d98e7570c458fb4992c6e49395b099a09bb5e133.patch

---

diff --git a/pkg/kamailio/alpine_docker/Dockerfile b/pkg/kamailio/alpine_docker/Dockerfile
index 7b55b404ff..5933ce2993 100644
--- a/pkg/kamailio/alpine_docker/Dockerfile
+++ b/pkg/kamailio/alpine_docker/Dockerfile
@@ -1,6 +1,5 @@
 FROM scratch
 
 ADD kamailio_img.tar.gz /
-COPY entrypoint.sh /
 
-ENTRYPOINT ["/entrypoint.sh"]
+ENTRYPOINT ["kamailio", "-DD", "-E"]
diff --git a/pkg/kamailio/alpine_docker/README.md b/pkg/kamailio/alpine_docker/README.md
index c5c7e074e0..ffc1a67702 100644
--- a/pkg/kamailio/alpine_docker/README.md
+++ b/pkg/kamailio/alpine_docker/README.md
@@ -6,19 +6,13 @@ Size of container decreased to 50MB (23MB compressed)
 Significantly increased security - removed all libs except libc, busybox, tcpdump, dumpcap, kamailio and dependent libs.
 Docker container is created useing Alpine linux packaging
 
-Used environment variables
---------------------------
-
-1. ```SHM_MEMORY``` - amount of shared memory to allocate for the running Kamailio server (in Mb), default value 64Mb;
-2. ```PKG_MEMORY``` - amount of per-process (package) memory to allocate for Kamailio (in Mb), default value 8Mb
-
 Usage container
 ---------------
 
 ```sh
 docker run --net=host --name kamailio \
            -v /etc/kamailio/:/etc/kamailio \
-           kamailio/kamailio
+           kamailio/kamailio -m 64 -M 8
 ```
 
 systemd unit file
diff --git a/pkg/kamailio/alpine_docker/entrypoint.sh b/pkg/kamailio/alpine_docker/entrypoint.sh
deleted file mode 100755
index 3720d06984..0000000000
--- a/pkg/kamailio/alpine_docker/entrypoint.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-#
-#  Created by Sergey Safarov <s.safarov at gmail.com>
-#
-
-SHM_MEMORY=${SHM_MEMORY:-64}
-PKG_MEMORY=${PKG_MEMORY:-8}
-trap 'kill -SIGTERM "$pid"' SIGTERM
-
-/usr/sbin/kamailio -DD -E -m $SHM_MEMORY -M $PKG_MEMORY &
-pid="$!"
-
-wait $pid
-exit 0




More information about the sr-dev mailing list