diff options
author | Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com> | 2018-03-27 16:46:32 -0400 |
---|---|---|
committer | Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com> | 2018-03-27 17:09:31 -0400 |
commit | 5da95c0df892b635db68550a3321e0e48c9e78f8 (patch) | |
tree | 7ede3891637e2d9032da2141b5952b36cc0cda33 /src/main/docker/Dockerfile | |
parent | 047ade94d55a1b6d8c352168652140f3579198ac (diff) |
Moving data-router to Springboot for security
Change-Id: I7a02720c4e0a79619ed6b309ff1f65f4d755c364
Issue-ID: AAI-590
Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>
Diffstat (limited to 'src/main/docker/Dockerfile')
-rw-r--r-- | src/main/docker/Dockerfile | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index 4019f5c..8963fa8 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -15,12 +15,26 @@ RUN export JAVA_HOME # Build up the deployment folder structure RUN mkdir -p $MICRO_HOME -ADD swm/package/nix/dist_files/appl/data-router/* $MICRO_HOME/ RUN mkdir -p $BIN_HOME -COPY *.sh $BIN_HOME +RUN mkdir -p $MICRO_HOME/bundleconfig +RUN mkdir -p $MICRO_HOME/bundleconfig/etc +RUN mkdir -p $MICRO_HOME/BOOT-INF/lib +COPY start.sh $MICRO_HOME/bin/ RUN chmod 755 $BIN_HOME/* RUN ln -s /logs $MICRO_HOME/logs +ENV MICRO_HOME ${MICRO_HOME} +ENV CONFIG_HOME=${CONFIG_HOME} +COPY data-router.jar $MICRO_HOME/ +COPY bundleconfig-local $MICRO_HOME/bundleconfig +COPY bundleconfig-local/etc/logback.xml $MICRO_HOME/bundleconfig/etc + +# Create the aai user +RUN mkdir /opt/aaihome && \ + groupadd -g 492381 aaiadmin && \ + useradd -r -u 341790 -g 492381 -ms /bin/bash -d /opt/aaihome/aaiadmin aaiadmin && \ + chown -R aaiadmin:aaiadmin $MICRO_HOME +USER aaiadmin EXPOSE 9502 9502 -CMD ["/opt/app/data-router/bin/start.sh"] +CMD ["/opt/app/data-router/bin/start.sh"]
\ No newline at end of file |