From dc766e69c0c08c55b6df2384bbcfd1e712f03160 Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Tue, 25 Jul 2017 02:05:17 -0700 Subject: [PATCH] Add ping vnf Change-Id: Ia58832589385f2be2309f60f0567fae3635c7833 Signed-off-by: Guo Ruijing --- src/vnf/ping/Dockerfile | 8 ++++++++ src/vnf/ping/start.sh | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 src/vnf/ping/Dockerfile create mode 100755 src/vnf/ping/start.sh diff --git a/src/vnf/ping/Dockerfile b/src/vnf/ping/Dockerfile new file mode 100644 index 0000000..9143623 --- /dev/null +++ b/src/vnf/ping/Dockerfile @@ -0,0 +1,8 @@ +FROM ubuntu:16.04 +LABEL maintainer="OPNFV OpenRetreiver" + +EXPOSE 22 +RUN apt-get update -y +RUN apt-get install -y sudo openssh-server inetutils-ping +COPY start.sh /usr/local/bin +RUN chmod 755 /usr/local/bin/start.sh diff --git a/src/vnf/ping/start.sh b/src/vnf/ping/start.sh new file mode 100755 index 0000000..2596a65 --- /dev/null +++ b/src/vnf/ping/start.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +chmod 700 ~/.ssh +chmod 600 ~/.ssh +sudo service ssh restart +while true ; do sleep 10000; done -- 2.16.6