diff options
author | Guo Ruijing <ruijing.guo@intel.com> | 2017-07-25 02:05:17 -0700 |
---|---|---|
committer | Guo Ruijing <ruijing.guo@intel.com> | 2017-07-25 02:05:43 -0700 |
commit | dc766e69c0c08c55b6df2384bbcfd1e712f03160 (patch) | |
tree | 45e9073b1213dce3cf6a7e8c9564f1767df49ecc /src | |
parent | edea600a65fa5879c564c2f8de3bbbf1d91f7823 (diff) |
Add ping vnf
Change-Id: Ia58832589385f2be2309f60f0567fae3635c7833
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnf/ping/Dockerfile | 8 | ||||
-rwxr-xr-x | src/vnf/ping/start.sh | 6 |
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 |