<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Junxiao,
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">Question: Why do you choose to install ndn-cxx, NFD, and ndn-tools from source code, as opposed from PPA repository?</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>To have latest build, and three previous versions - 0.6.1, 0.6.0 and 0.51 </div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class=""><br class="">
</div>
<div class="">Suggestion: If you are building from source code, you can use Docker multi-stage build to reduce the size of the final image. Although you have a "cleanup" step, the intermediate layers would still contain the compilers etc. See my Dockerfile
 for an example on how to use multi-stage build: <a href="https://github.com/yoursunny/docker-nfd-build/blob/f999f3fa38a3c3f229471282b482338a1cabd177/Dockerfile" class="">https://github.com/<wbr class="">yoursunny/docker-nfd-build/<wbr class="">blob/<wbr class="">f999f3fa38a3c3f229471282b48233<wbr class="">8a1cabd177/Dockerfile</a></div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>that’s helpful, I’ll look into this. This might be very useful for reducing ndnrtc image which is due to webrtc grows large</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class=""><br class="">
</div>
<div class="">Question: With your Docker image and "ndndn", is it possible to connect to NFD via Unix sockets, or are the connections UDP/TCP only?</div>
<div class=""><br class="">
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>this will require some additional effort. I think, nfd.sock file shall be exposed (mounted) to the host machine in a specific place in the filesystem (is it <span style="color: rgb(3, 47, 98); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255);" class="">/var/run/
 ?</span>). not sure how this will affect other applications using this directory on the host machine. </div>
<div>there also might be something else, like ~/.ndn folder that needs to be mounted, too.</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">Suggestion: If you can get Unix sockets working, you can build a separate Docker image for each NDN application, such as "nfd" "ndnping-client" "ndnping-server" "ndnrtc-consumer" "ndnrtc-producer”.</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>oh I see what you mean. Yes this is possible through using virtual volumes. I will consider doing this.</div>
<div><br class="">
</div>
<div>Thanks!</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class=""><br class="">
</div>
<div class="">Yours, Junxiao<br class="">
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Wed, Apr 11, 2018 at 3:22 PM, Peter Gusev <span dir="ltr" class="">
<<a href="mailto:gpeetonn@gmail.com" target="_blank" class="">gpeetonn@gmail.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word" class="">Hi devs,
<div class=""><br class="">
</div>
<div class="">I thought it might be useful to share what I have here.</div>
<div class="">I combed my tools and scripts that I wrote for running ndnrtc-client in Docker containers for general-purpose user, and results can be found in this repo - <a href="https://github.com/peetonn/ndn-docker/" target="_blank" class="">https://github.com/peetonn/n<wbr class="">dn-docker/</a></div>
<div class=""><br class="">
</div>
<div class="">which currently contains two "parts":</div>
<div class=""><span class="m_-6595556970212203043gmail-m_-3561149974004338072Apple-tab-span" style="white-space:pre-wrap"></span>-
<b class="">node</b> for stand-alone NDN Docker image (aka - <b class=""><i class="">docker pull peetonn/ndn-docker:latest </i></b>)</div>
<div class=""><span class="m_-6595556970212203043gmail-m_-3561149974004338072Apple-tab-span" style="white-space:pre-wrap"></span>-
<b class="">ndndn</b> - a tool running multiple containers on arbitrary defined topologies using .dot files</div>
<div class=""><br class="">
</div>
<div class="">I intend to continue adding features on this.</div>
<div class="">hope it might be useful for someone outside UCLA REMAP, room 1469c.</div>
<div class=""><br class="">
<div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
Thanks, </div>
<span class="m_-6595556970212203043gmail-HOEnZb"><font color="#888888" class="">
<div style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<br class="">
</div>
<div style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
-- <br class="">
Peter Gusev</div>
<div style="font-family: Helvetica; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<br class="">
<i class=""><a href="mailto:peter@remap.ucla.edu" target="_blank" class="">peter@remap.ucla.edu</a><br class="">
+1 213 5872748<br class="">
</i></div>
<div style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<br class="">
</div>
<div style="font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<i class=""><font color="#929292" class="">Research Scholar @ </font></i><a href="http://remap.ucla.edu/" target="_blank" class=""><i class="">REMAP UCLA</i></a><i class=""><font color="#929292" class=""><br class="">
Video streaming/ICN networks/Creativ<wbr class="">e Development</font></i></div>
</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
_______________________________________________<br class="">
Nfd-dev mailing list<br class="">
<a href="mailto:Nfd-dev@lists.cs.ucla.edu" class="">Nfd-dev@lists.cs.ucla.edu</a><br class="">
http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>