Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #11647: Upgrade to Jetty9 #1397

Conversation

fanf
Copy link
Member

@fanf fanf commented Oct 20, 2017

https://www.rudder-project.org/redmine/issues/11647

Nice novelty: in Jetty9, we have a $JETTY_BASE where you define your modules (new concept, very cleanly defined!) and webapp env config. $JETTY_HOME is kept only for the base distrib and is not modifed (which should ease future upgrade). Doc is here http://www.eclipse.org/jetty/documentation/current/startup-base-and-home.html, and it is nice! The one for module is here, about how to list/search/add modules: http://www.eclipse.org/jetty/documentation/current/startup-modules.html.

All patches pass with minor changes. I'm not sure we need to keep the one about setuid, because there is a module which seem to do just that.

I choose to define JETTY_BASE=/opt/rudder/etc/rudder-jetty-base (so along /opt/rudder/etc/rudder-jetty.config file). /opt/rudder/share/webapp does not change.

@@ -141,12 +141,12 @@ mkdir -p %{buildroot}/var/rudder/run

cd %{_topdir}/SOURCES

cp -a jetty7 %{buildroot}/opt/rudder
cp -a jetty %{buildroot}/opt/rudder
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also copy jetty-base files here

@fanf
Copy link
Member Author

fanf commented Oct 23, 2017

PR rebased

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 3730745 into Normation:master Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants