summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vnf/ping/Dockerfile8
-rwxr-xr-xsrc/vnf/ping/start.sh6
2 files changed, 14 insertions, 0 deletions
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