diff options
author | Ladue, David (dl3158) <dl3158@att.com> | 2018-03-18 23:16:42 -0400 |
---|---|---|
committer | Ladue, David (dl3158) <dl3158@att.com> | 2018-03-18 23:37:27 -0400 |
commit | fb0aff81014b052a938a60b0815d6052404be162 (patch) | |
tree | 3c364bea1ef8f611ad9c2e980067d165cd8f5d43 /Dockerfile | |
parent | 7005c35f604222a0a7075ba27b4a7017908c65e8 (diff) |
docker and build config updates
Change-Id: I8420760c2ee8245bfb4394532db47e303bb621e7
Issue-ID: DCAEGEN2-271
Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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"] |