diff options
author | Polavarapu, Chaitanya (cp8128) <cp8128@att.com> | 2021-02-12 13:32:33 -0500 |
---|---|---|
committer | Polavarapu, Chaitanya (cp8128) <cp8128@att.com> | 2021-02-23 15:54:08 -0500 |
commit | 7f592e87a5ba61a8538d6f399f3778b884a9b3ce (patch) | |
tree | e08612504770b164d28b70a9008cae04d37738a7 /src/main/docker | |
parent | de97feac66e234a0ebea9bf0774aa01136f3c04f (diff) |
Updated pom to remove distribution-management section and corrected aai base image version
Issue-ID: AAI-2996
Change-Id: I28da9ccf5618e180e04e3f29b0440bab5e3ffc3f
Signed-off-by: Polavarapu, Chaitanya (cp8128) <cp8128@att.com>
Diffstat (limited to 'src/main/docker')
-rw-r--r-- | src/main/docker/Dockerfile | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index 369d1b5..623cfd8 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -1,21 +1,23 @@ -FROM @aai.docker.namespace@/aai-common-@aai.base.image@:@aai.base.image.version@ +FROM @docker.push.registry@/@aai.docker.namespace@/aai-common-@aai.base.image@:@aai.base.image.version@ ARG MICRO_HOME=/opt/app/babel # Build up the deployment folder structure -RUN mkdir -p $MICRO_HOME $MICRO_HOME/logs - -RUN groupadd aaiadmin -g 1000 -RUN adduser -u 1000 -h /opt/aaihome/aaiadmin -S -D -G aaiadmin -s /bin/bash aaiadmin +#RUN groupadd aaiadmin -g 1000 +#RUN adduser -u 1000 -h /opt/aaihome/aaiadmin -S -D -G aaiadmin -s /bin/bash aaiadmin WORKDIR $MICRO_HOME -RUN chown -R aaiadmin:aaiadmin $MICRO_HOME $MICRO_HOME/logs +USER root -COPY --chown=aaiadmin:aaiadmin /maven/babel/ . +# Create the aai user +RUN mkdir -p /opt/aaihome $MICRO_HOME /logs && \ + ln -s /logs $MICRO_HOME/logs && \ + chown -R aaiadmin:aaiadmin $MICRO_HOME && \ + chown -R aaiadmin:aaiadmin /logs -USER aaiadmin +COPY --chown=aaiadmin:aaiadmin /maven/babel/ . +# The start script is executable and can be run directly. -RUN chmod 755 bin/* \ - && ln -s /logs $MICRO_HOME/logs +ENTRYPOINT ["/sbin/tini", "--", "/bin/bash", "/opt/app/babel/bin/start.sh"] -CMD ["/opt/app/babel/bin/start.sh"] +USER aaiadmin |