From fb0aff81014b052a938a60b0815d6052404be162 Mon Sep 17 00:00:00 2001 From: "Ladue, David (dl3158)" Date: Sun, 18 Mar 2018 23:16:42 -0400 Subject: docker and build config updates Change-Id: I8420760c2ee8245bfb4394532db47e303bb621e7 Issue-ID: DCAEGEN2-271 Signed-off-by: Ladue, David (dl3158) --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index e4806c3..4ac915e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,14 +12,18 @@ WORKDIR ${APPDIR} 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 @@ USER ${APPUSER} VOLUME ${APPDIR}/logs # Run run_policy.sh when the container launches -CMD ["./bin/dcae_snmptrapd.sh"] +CMD ["./bin/snmptrapd.sh start"] -- cgit 1.2.3-korg