Uh oh!
There was an error while loading. Please reload this page.
Embedded jetty inside shaded jar - #2207
Conversation
marcaurele
commented
Jul 28, 2017
@rhtyd I still have to add a couple of things. There isn't anymore any JSP for the UI, right? |
75a22f2 to
a576e61Compare| public void init(DaemonContext context) { | ||
| Properties props = System.getProperties(); | ||
| setPort(Integer.parseInt(props.getProperty("jetty.port", "8080"))); | ||
| setBindInterface(props.getProperty("jetty.host")); |
There was a problem hiding this comment.
To what does jetty.host default to? Reason I'm asking is IPv6. Just want to make sure we bind on '::' and not 0.0.0.0 so that IPv6 works out of the box
There was a problem hiding this comment.
Good point @wido but it should work since if there isn't any value it's binding to * which should includes IPv6, right?
wido
commented
Jul 28, 2017
Very nice! Very welcome. I think we also need a modified systemd service to make this work, right? |
marcaurele
commented
Jul 28, 2017
@wido yes, it's one of the bullet in the list still open. I have to copy paste what I've done and adapt as much as I can for the upstream version. It's really a first shot to let @rhtyd know what I haven't forgotten to work on it. More to come and I'll ping when it's ready for testing/adaptation |
@marcaurele thanks yes, JSPs have been removed from UI now. Good to see this, I'll close my PR. |
717792e to
375eb72Comparemarcaurele
commented
Aug 7, 2017
@rhtyd I think I backported all necessary changes (for Ubuntu distro). Can you have a look & try? |
@marcaurele thanks, I'll have a look this week. Can you fix Travis failures as well, are there any changes wrt how a developer builds, runs and tests CloudStack? I've one reservation -- if we put everything in a single jar, it might be difficult for users to apply UI changes and add custom jars, anyway to do that? Maybe add a custom path (add a classpath) for an override directory from where jars may be loaded and maybe split the UI as a separate rpm/deb? Can you also allow me to push on the exoscale:CLOUDSTACK-10012 branch? Alternatively, you may push the changes to the upstream branch so I can collaborate and make changes with you. |
yadvr
commented
Aug 7, 2017
@blueorangutan package |
blueorangutan
commented
Aug 7, 2017
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
wido
commented
Aug 7, 2017
I see you modified the init script, but as Ubuntu and CentOS have moved to systemd, shouldn't we fix that as well? |
yadvr
commented
Aug 7, 2017
@wido that should, however testing is required. I see |
blueorangutan
commented
Aug 7, 2017
Packaging result: ✖centos6 ✖centos7 ✖debian. JID-925 |
yadvr
commented
Aug 7, 2017
@marcaurele I've found the fix, can you put this commit in your branch as I cannot push changes: |
yadvr
commented
Aug 7, 2017
@marcaurele with the above fix I could get the build to work, however can you share how would you run the management server both using mvn and scripts? I'm unable to get it to work. |
marcaurele
commented
Aug 7, 2017
Even if it looks like a fat/uber jar, the startup script still runs it as a normal multi jar. If you really want, you could have a single jar. Due to bouncycastle and the JCE signature check, it is not possible to run it as a single jar. To start it, I use: |
| # Load extra arguments from java-opts.conf if any | ||
| if [ -r "$MANAGEMENT_CONFIG/java-opts.conf" ]; then | ||
| JAVA_EXTRA_OPTS=$(cat $MANAGEMENT_CONFIG/java-opts.conf) | ||
| JAVA_OPTS="$JAVA_OPTS $JAVA_EXTRA_OPTS" |
There was a problem hiding this comment.
@rhtyd there's the inclusion of a java-opts.conf file if present that helps to add extra parameters to the classpath, like extra JARs, extra config directories, JMX...
marcaurele
commented
Aug 7, 2017
There should be an option to let maintainer edit a PR (on github), so I guess the content of it too. But it does not seem to be active on the repository (https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) |
yadvr
commented
Aug 7, 2017
@marcaurele thanks, I started working on this PR based on your branch to fix the centos7 issues: #2226 this is on ASF remote so any committer should be able to commit or send PRs. |
marcaurele
commented
Aug 7, 2017
Ok, closing this one then in favor of #2226 |
yadvr
commented
Aug 7, 2017
Thanks @marcaurele please collaborate on #2226 , feel free to directly push changes. I'll use your suggestions and incorporate them in the systemd scripts now, currently trying to fix centos packaging. |
This PR is to remove the dependency on distro Tomcat to ship CloudStack directly with an embedded Jetty. The delivery will only be scripts, one fat jar, JCE jar and default properties files.