From: Rogers, Reneal(rr267j) Date: Wed, 13 Jun 2018 15:31:41 +0000 (-0400) Subject: remove the creation of aaiadmin user X-Git-Tag: 1.3.1~22 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fsearch-data-service.git;a=commitdiff_plain;h=77ce5bb14520c262f27995da98e13f64fb9912f5 remove the creation of aaiadmin user Remove the creation of the aaiadmin user in the docker container Issue-ID: AAI-1226 Change-Id: I6841b2aab5102cb8968eec74219f3d00dc93f88b Signed-off-by: renealr --- diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index 27073a5..8578ef6 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -22,15 +22,6 @@ COPY bundleconfig-local/etc/logback.xml $MICRO_HOME/bundleconfig/etc RUN chmod 755 $BIN_HOME/* RUN ln -s /logs $MICRO_HOME/logs -# 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 -RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers -RUN sudo usermod -a -G sudo aaiadmin -USER aaiadmin - EXPOSE 9509 9509 CMD ["/opt/app/search-data-service/bin/start.sh"]