Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-6434

Create Forge plugin that helps with initialization of AS and DB

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • None
    • None

      It would be handy to have for example Forge tools that allows to initialize application server (WF/EAP) and database (MySQL/Postgres) by running CLI script, copying dependencies, etc.

      Tooling can also auto-detect running database, using standard port binding for the given databases and/or detecting running docker containers with given database:

      docker ps 
      CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
      e91a208eeb2e        mysql:5.5           "/entrypoint.sh mysql"   8 days ago          Up 30 minutes       0.0.0.0:6406->3306/tcp   docker_keycloak_1
      eb363c933aa9        mysql:5.5           "/entrypoint.sh mysql"   8 days ago          Up 30 minutes       0.0.0.0:6306->3306/tcp   docker_unifiedpush_1
      

      This is particularly handy for UPS developers.

      Steps required to initialize UPS on WF/MySQL:

      docker-compose -f ups-datasource.yml up
      
      
      cd aerogear-unifiedpush-server/migrator/
      mvn clean install dependency:copy-dependencies -DincludeScope=runtime
      export UPS_MIGRATOR_HOME=$PWD/target/dependency/*:$PWD/target
      sh ./src/main/shell/ups-migrator update
      
      cp -r ../aerogear-unifiedpush-server/databases/src/main/resources/modules/com modules
      mvn dependency:copy -Dartifact=mysql:mysql-connector-java:5.1.18 -DoutputDirectory=modules/com/mysql/jdbc/main/
      vi ../aerogear-unifiedpush-server/databases/mysql-database-config-wildfly.cli
      ./bin/jboss-cli.sh --file=../aerogear-unifiedpush-server/databases/mysql-database-config-wildfly.cli
      

            Unassigned Unassigned
            lfryc Lukáš Fryč (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: