diff options
author | Ritu Sood <ritu.sood@intel.com> | 2019-12-26 11:03:19 -0800 |
---|---|---|
committer | Ritu Sood <ritu.sood@intel.com> | 2019-12-26 11:03:19 -0800 |
commit | 8e52332ac0090767e5290516c608f81e7525dbae (patch) | |
tree | 2ebf431948b7a186e1784c801ea7bc9b7d6dad3b | |
parent | 52123c4bdcfad323f8fb57742400be993167ae2d (diff) |
Update Dockerfile for nfn-agent
Change-Id: Id6091d5a439eff3cde1ac0eeb4cb4541206c955e
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
-rw-r--r-- | build/Dockerfile | 1 | ||||
-rwxr-xr-x | build/bin/entrypoint | 7 |
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}" |