diff options
-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}" |