From 8e52332ac0090767e5290516c608f81e7525dbae Mon Sep 17 00:00:00 2001 From: Ritu Sood Date: Thu, 26 Dec 2019 11:03:19 -0800 Subject: Update Dockerfile for nfn-agent Change-Id: Id6091d5a439eff3cde1ac0eeb4cb4541206c955e Signed-off-by: Ritu Sood --- build/Dockerfile | 1 + build/bin/entrypoint | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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}" -- cgit 1.2.3-korg