|
|
|
|
|
|
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:
```` {code} 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 ```` {code}
This is particularly handy for UPS developers.
Steps required to initialize MySQL on WF:
{code} 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 {code}
|
|
|
|
|
|