summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Venkatesh Kumar <vv770d@att.com>2019-08-09 18:25:17 +0000
committerVijay Venkatesh Kumar <vv770d@att.com>2019-08-09 18:42:33 +0000
commit52469eca21ca0245745cadc9e34862cbefd7c013 (patch)
treec11d6ab1aace0c615e005bd469f93df503620bed
parentef4ae30a2c4348e18354761f56672df22bf98142 (diff)
rollback non-root userchange
Change-Id: I4e58ccebda28a4e38cdacb8105651f9cc20726e0 Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com> Issue-ID: DCAEGEN2-1665 Issue-ID: DCAEGEN2-1559
-rw-r--r--tca-cdap-container/Dockerfile10
1 files changed, 1 insertions, 9 deletions
diff --git a/tca-cdap-container/Dockerfile b/tca-cdap-container/Dockerfile
index 36366b4..18f9a85 100644
--- a/tca-cdap-container/Dockerfile
+++ b/tca-cdap-container/Dockerfile
@@ -16,15 +16,9 @@
FROM caskdata/cdap-standalone:4.1.2
-ARG USER_GROUP=tca-cdap-group
-ARG NON_ROOT_USER=tca-cdap
-
-#Add a new user and group to allow container to be run as non-root
-RUN addgroup --system ${USER_GROUP} && adduser --system ${NON_ROOT_USER} --ingroup ${USER_GROUP}
RUN apt-get update && apt-get install -y netcat jq iputils-ping wget vim curl
COPY get-tca.sh /opt/tca/get-tca.sh
-RUN chmod -R 777 /opt/tca/*
-RUN chmod 755 /opt/tca/get-tca.sh
+RUN /opt/tca/get-tca.sh
COPY tca_app_config.json /opt/tca/tca_app_config.json
COPY tca_app_preferences.json /opt/tca/tca_app_preferences.json
COPY restart.sh /opt/tca/restart.sh
@@ -39,6 +33,4 @@ RUN chmod 755 /opt/tca/mr-watchdog.sh
EXPOSE 11011
EXPOSE 11015
-USER ${NON_ROOT_USER}:${USER_GROUP}
-
ENTRYPOINT /opt/tca/restart.sh