aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrinath Somanchi <trinaths.dev@gmail.com>2020-03-16 17:51:12 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-03-16 17:51:12 +0000
commitc25086b83854d163fa5a3ce040038060654818ac (patch)
treeb14baeb7a694850ed8a64911e3353b2cf1e11a41
parent8a0bdfd6ee9390acae654da6b95bc1ad55d53779 (diff)
parent8e52332ac0090767e5290516c608f81e7525dbae (diff)
Merge "Update Dockerfile for nfn-agent"
-rw-r--r--build/Dockerfile1
-rwxr-xr-xbuild/bin/entrypoint7
2 files changed, 7 insertions, 1 deletions
diff --git a/build/Dockerfile b/build/Dockerfile
index 43d6731..94a83aa 100644
--- a/build/Dockerfile
+++ b/build/Dockerfile
@@ -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
diff --git a/build/bin/entrypoint b/build/bin/entrypoint
index af0d88a..77084a3 100755
--- a/build/bin/entrypoint
+++ b/build/bin/entrypoint
@@ -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}"