summaryrefslogtreecommitdiffstats
path: root/tca-cdap-container/Dockerfile
diff options
context:
space:
mode:
authorjegadeeshbabu1 <jegabab1@in.ibm.com>2019-07-23 12:07:29 +0530
committerjegadeeshbabu1 <jegabab1@in.ibm.com>2019-07-23 12:08:24 +0530
commit58e95622312876470d2e0c2ae7e0383349db36bd (patch)
tree0754c726917f680bfde30b89741c83fa7ee68f63 /tca-cdap-container/Dockerfile
parentfdfcdfaf73ec4f443f7bea0f9350d4e9e75cfdbb (diff)
Added command to give permissions
Fix for permission denied issue Issue-ID: DCAEGEN2-1559 Change-Id: Ibb6c1c8c52340e769014d0695d71a57908dcf0ea Signed-off-by: jegadeeshbabu1 <jegabab1@in.ibm.com>
Diffstat (limited to 'tca-cdap-container/Dockerfile')
-rw-r--r--tca-cdap-container/Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tca-cdap-container/Dockerfile b/tca-cdap-container/Dockerfile
index e7ae748..36366b4 100644
--- a/tca-cdap-container/Dockerfile
+++ b/tca-cdap-container/Dockerfile
@@ -23,7 +23,8 @@ ARG NON_ROOT_USER=tca-cdap
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 /opt/tca/get-tca.sh
+RUN chmod -R 777 /opt/tca/*
+RUN chmod 755 /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,4 +40,5 @@ EXPOSE 11011
EXPOSE 11015
USER ${NON_ROOT_USER}:${USER_GROUP}
+
ENTRYPOINT /opt/tca/restart.sh