rhtyd commented on issue #2226: CLOUDSTACK-10012: Towards CloudStack fat jar URL: https://github.com/apache/cloudstack/pull/2226#issuecomment-340400815 This is ready for review now, I've personally tested this on CentOS6, CentOS7, Ubuntu 14.04 and 17.04. Pinging for review -- @marcaurele @wido @PaulAngus @DagSonstebo @DaanHoogland @nvazquez @borisstoyanov @resmo @karuturi @fmaximus @GabrielBrascher @rafaelweingartner @ustcweizhou @NuxRo New configuration file updates/changes: - `/etc/cloudstack/management/server.properties` - single file to configure ports, webapp directory, http/s configurations, webapp context path etc. - Environment configuration set at `/etc/default/cloudstack-management` (CentOS accepts having env conf files at /etc/default, while Ubuntu uses this path most of the time) High-level changelog: - Changes packaging to shaded jar - Updates jetty dependencies version 9.2 (java 7+) - Initial changes to debian config files - Initial removal of tomcat dependency - Introduce ServerDaemon class with customizations - Migrate to embedded Jetty server - Improve ServerDaemon implementation - Introduce a new server.properties file for easier configuration - Have a single /etc/default/cloudstack-management to configure env - Reduce shaded jar file, removing unnecessary dependencies - Upgrade to Spring 5.x, upgrade several jar dependencies - Does not shade and include mysql-connector, used from classpath instead - Upgrade and use bountcastle as a separate un-shaded jar dependency - Remove tomcat related configuration and files - Have both embedded UI assets in uber jar and separate webapp directory - Refactor systemd and init scripts, cleanup packaging - Made cloudstack-setup-databases faster, using `urandom` - Remove unmaintained distro packagings Limitations and future work: - To maintain compatibilities of both init.d/systemd scripts, we're still using `jsvc` that can be removed as a next step (for systemd, move to java directly as a simple method than a forking method) after this PR gets merged. - To allow users to manipulate SQL files during upgrade, the setup/db scripts are not embedded into the uberjar yet and is WIP as a separate PR by @marcaurele #2247 - `cloudstack-setup-databases` can be refactored to use the same db deployment/upgrade strategy as used by developers as a next step.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
