Update Dockerfile for nfn-agent 49/69449/1
authorRitu Sood <ritu.sood@intel.com>
Thu, 26 Dec 2019 19:03:19 +0000 (11:03 -0800)
committerRitu Sood <ritu.sood@intel.com>
Thu, 26 Dec 2019 19:03:19 +0000 (11:03 -0800)
Change-Id: Id6091d5a439eff3cde1ac0eeb4cb4541206c955e
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
build/Dockerfile
build/bin/entrypoint

index 43d6731..94a83aa 100644 (file)
@@ -14,6 +14,7 @@ RUN apt-get update && apt-get install -y -qq apt-transport-https curl \
 
 
 ENV OPERATOR=/usr/local/bin/nfn-operator \
+    AGENT=/usr/local/bin/nfn-agent \
     USER_UID=1001 \
     USER_NAME=nfn-operator
 
index af0d88a..77084a3 100755 (executable)
@@ -1,6 +1,5 @@
 #!/bin/sh -e
 
-
 cmd=${1:-""}
 
 case ${cmd} in
@@ -20,6 +19,12 @@ case ${cmd} in
       exec ${OPERATOR} $@
       ;;
 
+    "agent")
+      shift
+      exec ${AGENT} $@
+      ;;
+
+
     *)
       echo "invalid command ${cmd}"