[Nfd-dev] Creating multiple VMs with NFD quickly

Junxiao Shi shijunxiao at email.arizona.edu
Fri Apr 13 14:01:44 PDT 2018


Hi Peter

It's impressive that you made a new Docker image for NFD.
I have several questions and suggestions (for commit
a444bd60b3a5d53c36bd8a452bdabf6e2a643c04).

Question: Why do you choose to install ndn-cxx, NFD, and ndn-tools from
source code, as opposed from PPA repository?

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:
https://github.com/yoursunny/docker-nfd-build/blob/
f999f3fa38a3c3f229471282b482338a1cabd177/Dockerfile

Question: With your Docker image and "ndndn", is it possible to connect to
NFD via Unix sockets, or are the connections UDP/TCP only?

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".

Yours, Junxiao

On Wed, Apr 11, 2018 at 3:22 PM, Peter Gusev <gpeetonn at gmail.com> wrote:

> Hi devs,
>
> I thought it might be useful to share what I have here.
> 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 - https://github.com/peetonn/ndn-docker/
>
> which currently contains two "parts":
> - *node* for stand-alone NDN Docker image (aka - *docker pull
> peetonn/ndn-docker:latest *)
> - *ndndn* - a tool running multiple containers on arbitrary defined
> topologies using .dot files
>
> I intend to continue adding features on this.
> hope it might be useful for someone outside UCLA REMAP, room 1469c.
>
> Thanks,
>
> --
> Peter Gusev
>
>
>
> *peter at remap.ucla.edu <peter at remap.ucla.edu>+1 213 5872748*
>
> *Research Scholar @ **REMAP UCLA* <http://remap.ucla.edu/>
> *Video streaming/ICN networks/Creative Development*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20180413/e5c48ab1/attachment.html>


More information about the Nfd-dev mailing list