Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
[root@ip-172-30-0-83 ~]# docker exec -it grouper-ui /bin/bash
[root@50a8af38ba7f grouper.apiBinary]# cd /opt/grouper/grouper.apiBinary/bin/
[root@50a8af38ba7f bin]# ./gsh -registry -runscript


Code Block
languagebash
titleAlternate way to init db by creating a throw away container
[root@ip-172-30-0-83 ~]# docker run --detach \
   --mount type=bind,src=/opt/groupercontainer/conf,dst=/opt/grouper/conf \
   --mount type=bind,src=/opt/groupercontainer/logs/grouper-ui,dst=/opt/grouper/logs \
   --mount type=bind,src=/opt/groupercontainer/ddlScripts,dst=/opt/grouper/grouper.apiBinary/ddlScripts/ \
   --name dbInit \
   --entrypoint /opt/grouper/grouper.apiBinary/bin/gsh \
   tier/grouper:2.4.0-a89-u55-w11-p12-20200110-rc1 \
   -registry -check -runscript -noprompt

# NOTE: The /opt/groupercontainer/ddlScripts dir will contain the ddl file that was executed against the DB. ( If you want it. )
# Now you can delete that container. The above line will only check and correct the DB if needed, but generally should not be done trivially.
[root@ip-172-30-0-83 ~]# docker rm dbInit

...