summaryrefslogtreecommitdiffstats
path: root/auth/docker/Dockerfile.agent
diff options
context:
space:
mode:
authorInstrumental <jgonap@stl.gathman.org>2020-03-24 17:07:27 -0500
committerInstrumental <jgonap@stl.gathman.org>2020-03-26 01:28:32 -0500
commit96bf6a2771dfe992fb27bd6361d191d83b6ff605 (patch)
treeb26581f65d15574fe81f5dfa3e061b93744ef7fd /auth/docker/Dockerfile.agent
parent48bcfb9d4b03ac3e2e6915f7bdf72599c8794d43 (diff)
AAF Services non root, all platforms2.1.20
adjust Agent for JDK 11 Included redoing Config and Agent Init Containers refit for "hello" (sample) Issue-ID: AAF-1102 Signed-off-by: Instrumental <jgonap@stl.gathman.org> Change-Id: Ia957b1ccce34d164580ccb0a6d02d7b800e4887e
Diffstat (limited to 'auth/docker/Dockerfile.agent')
-rw-r--r--auth/docker/Dockerfile.agent13
1 files changed, 9 insertions, 4 deletions
diff --git a/auth/docker/Dockerfile.agent b/auth/docker/Dockerfile.agent
index e974dc49..71f70098 100644
--- a/auth/docker/Dockerfile.agent
+++ b/auth/docker/Dockerfile.agent
@@ -27,9 +27,14 @@ LABEL version=${AAF_VERSION}
COPY bin/client.sh /opt/app/aaf_config/bin/agent.sh
COPY bin/pod_wait.sh /opt/app/aaf_config/bin/pod_wait.sh
COPY bin/aaf-cadi-aaf-${JAR_VERSION}-full.jar /opt/app/aaf_config/bin/
-COPY bin/aaf-cadi-servlet-sample-*-sample.jar /opt/app/aaf_config/bin/
+#COPY bin/aaf-cadi-servlet-sample-*-sample.jar /opt/app/aaf_config/bin/
COPY cert/*trust*.b64 /opt/app/aaf_config/cert/
-RUN chmod 755 /opt/app/aaf_config/bin/* &&\
- if [ -n "${DUSER}" ]; then chown -R ${DUSER}:${DUSER} /opt/app/aaf_config; fi
-USER ${DUSER}
+
CMD []
+
+RUN mkdir -p /opt/app/osaaf/local && \
+ if [ -n "${DUSER}" ]; then \
+ addgroup ${DUSER} && adduser ${DUSER} -G ${DUSER} -D -s /bin/bash; \
+ chown ${DUSER}:${DUSER} /opt/app/osaaf/local; \
+ fi
+# Note: User added if in d.props