Git Product home page Git Product logo

ndn-tools-docker's People

Contributors

cbmckni avatar justincpresley avatar

Stargazers

 avatar  avatar  avatar

Forkers

5l1v3r1

ndn-tools-docker's Issues

No Access, Heres the Latest Working Image

Just Copy this into the Dockerfile, and push it when you have the chance.

FROM ubuntu
LABEL maintainer "Cole McKnight <[email protected]>"
ARG VERSION_CXX=master
ARG VERSION_NFD=master

# base packages
RUN apt-get update  &&  \
    apt-get -y install git build-essential nano curl vim wget iperf3 traceroute iputils-ping

# kubectl
RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \
        && echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list \
        && apt-get update -qq \
        && apt-get install -qq -y kubectl

# noninteractive sub-install - tzdata
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata

# install ndn-cxx
RUN apt install -y g++ pkg-config python3-minimal libboost-all-dev libssl-dev libsqlite3-dev
RUN git clone https://github.com/named-data/ndn-cxx.git
WORKDIR ndn-cxx
RUN CXXFLAGS="-O1 -g3" ./waf configure --debug --with-tests
RUN ./waf
RUN ./waf install
WORKDIR ..

# install nfd
RUN apt install -y software-properties-common libpcap-dev libsystemd-dev
RUN add-apt-repository ppa:named-data/ppa
RUN apt update
RUN git clone --recursive https://github.com/named-data/NFD.git
WORKDIR NFD
RUN ./waf configure
RUN ./waf
RUN ./waf install
WORKDIR ..

# install ndn-tools
RUN apt install -y libpcap-dev
RUN git clone https://github.com/named-data/ndn-tools.git
WORKDIR ndn-tools
RUN ./waf configure
RUN ./waf
RUN ./waf install
WORKDIR ..

# initial configuration
RUN cp /usr/local/etc/ndn/nfd.conf.sample /usr/local/etc/ndn/nfd.conf \
    && ndnsec-keygen /`whoami` | ndnsec-install-cert - \
    && mkdir -p /usr/local/etc/ndn/keys \
    && ndnsec-cert-dump -i /`whoami` > default.ndncert \
    && mv default.ndncert /usr/local/etc/ndn/keys/default.ndncert

RUN mkdir /share \
    && mkdir /logs

# cleanup
RUN apt autoremove \
    && apt-get remove -y git build-essential python pkg-config

EXPOSE 6363/tcp
EXPOSE 6363/udp

ENV CONFIG=/usr/local/etc/ndn/nfd.conf
RUN mkdir -p /logs
ENV LOG_FILE=/logs/nfd.log

# Entrypoint
RUN mkdir -p /workspace
WORKDIR /workspace
ENTRYPOINT /usr/local/bin/nfd -c $CONFIG > $LOG_FILE 2>&1 & /bin/bash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.