docker and build config updates
Change-Id: I8420760c2ee8245bfb4394532db47e303bb621e7
Issue-ID: DCAEGEN2-271
Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
diff --git a/Dockerfile b/Dockerfile
index e4806c3..4ac915e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,14 +12,18 @@
EXPOSE 162
# Copy the current directory contents into the container at ${APPDIR}
-COPY ./src/ ./bin/
+COPY ./bin/ ./bin/
COPY ./etc/ ./etc/
-RUN mkdir -p ${APPDIR}/logs \
+RUN mkdir -p ${APPDIR}/data \
+ && mkdir -p ${APPDIR}/logs \
+ && mkdir -p ${APPDIR}/tmp \
&& chown -R ${APPUSER}:${APPUSER} ${APPDIR} \
+ && chmod a+w ${APPDIR}/data \
&& chmod a+w ${APPDIR}/logs \
+ && chmod a+w ${APPDIR}/tmp \
&& chmod 500 ${APPDIR}/etc \
- && chmod 500 ${APPDIR}/bin/dcae_snmptrapd.sh
+ && chmod 500 ${APPDIR}/bin/snmptrapd.sh
USER ${APPUSER}
@@ -27,4 +31,4 @@
VOLUME ${APPDIR}/logs
# Run run_policy.sh when the container launches
-CMD ["./bin/dcae_snmptrapd.sh"]
+CMD ["./bin/snmptrapd.sh start"]