diff options
author | Dan Timoney <dtimoney@att.com> | 2020-05-06 12:47:53 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2020-05-06 12:54:30 -0400 |
commit | 776c4819908805507ae9d7b5d3c89d3c829b08a4 (patch) | |
tree | ce4ac3fcb73af7a71c41bb19c70cee99b01e591f /ms/neng/src/main/docker | |
parent | 55137e757b33b76d045df2b4b56269395619e3a0 (diff) |
Invalid SQL in db init script
MySQL allows AUTO_INCREMENT to take args indicating initial value
and offset. MariaDB AUTO_INCREMENT is not as flexible - you can
specify initial value , but offset is a system-wide parameter
(default 1, but can be overridden in my.conf config file).
Changed database script to use AUTO_INCREMENT without (0,100),
which will cause those fields to start at value 0 and increment
by 1.
Change-Id: Icc6793290082d455f9de1bd838a6ad8d71d66afa
Issue-ID: CCSDK-2360
Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'ms/neng/src/main/docker')
-rw-r--r-- | ms/neng/src/main/docker/Dockerfile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ms/neng/src/main/docker/Dockerfile b/ms/neng/src/main/docker/Dockerfile index e7dc93b3..6f42eaec 100644 --- a/ms/neng/src/main/docker/Dockerfile +++ b/ms/neng/src/main/docker/Dockerfile @@ -31,6 +31,11 @@ VOLUME /opt/etc ADD opt/etc/ /opt/etc/ #ADD /opt/aai/ /opt/aai/ ADD startService.sh /startService.sh +RUN addgroup -S ccsdk && adduser -S ccsdk -G ccsdk +RUN chown ccsdk:ccsdk /startService.sh +RUN chown -R ccsdk:ccsdk /opt +RUN chmod go+w /tmp RUN chmod 700 /startService.sh +USER ccsdk ENTRYPOINT bash /startService.sh EXPOSE 8080 |