<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>i think you can set <span>shm_mem_size in script to a #DEFINE that can be overridden with -A</span></p>
<p><span><br>
</span></p>
<p><span>in script</span></p>
<p><span><br>
</span></p>
<p><span>#DEFINE SHM_MEM 64</span></p>
<p><span><br>
</span></p>
<p><span><span>shm_mem_size = #<span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">DEFINE</span></span><br>
</span></p>
<p><span><span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><br>
</span></span></span></p>
<p><span><span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><br>
</span></span></span></p>
<p><span><span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">then kamailio -A SHM_MEM=32</span></span></span></p>
<p><span><span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><br>
</span></span></span></p>
<p><span><span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">haven't tried it, but Daniel mentioned -A in the devel
 meeting.</span></span></span></p>
<p><span><span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><br>
</span></span></span></p>
<p><span><span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">not sure if there's a pkg_mem we can also use.</span></span></span></p>
<p><span><span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><br>
</span></span></span></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> sr-dev <sr-dev-bounces@lists.kamailio.org> on behalf of sergey-safarov <notifications@github.com><br>
<b>Sent:</b> Thursday, September 28, 2017 8:47:21 AM<br>
<b>To:</b> Kamailio Devel List<br>
<b>Cc:</b> Subscribed<br>
<b>Subject:</b> [sr-dev] [kamailio/kamailio] memory configuration using environment vars (#1252)</font>
<div> </div>
</div>
<div>
<h3>Description</h3>
<p>Docker container at runtime is configured using environment vars.<br>
Kamailio now not supports configure memory using environment vars and need use workarroud like
<a href="https://github.com/kamailio/kamailio/blob/master/pkg/kamailio/alpine_docker/entrypoint.sh">
entrypoint.sh</a>.</p>
<p>I want remove this workarround but need to add ability to configure kamailio memory using vars
<code>SHM_MEMORY</code> and <code>PKG_MEMORY</code> when kamailio started without
<code>-m</code> and <code>-M</code> keys</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>
You are receiving this because you are subscribed to this thread.<br>
Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1252">
view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZbTOBRJvkq6OuGbbDi4stexxgAN-ks5sm08JgaJpZM4Pm2tJ">
mute the thread</a>.<img alt="" height="1" width="1" src="https://github.com/notifications/beacon/AF36ZbS53xt--K663ZwC1ZajcljNxe-Xks5sm08JgaJpZM4Pm2tJ.gif"></p>
<div itemscope="" itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope="" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1252"><!-- </link> -->
<meta itemprop="name" content="View Issue">
<!-- </meta> --></div>
<meta itemprop="description" content="View this Issue on GitHub">
<!-- </meta> --></div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"memory configuration using environment vars (#1252)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1252"}}}</script></div>
</body>
</html>