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

Customizing deployment directory of webapps #159

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jgribonvald
Copy link
Contributor

Checklist
Description of change

This change allow to setup a custom webapps directory where to deploy all apps (uPortal and portlets).

@jgribonvald jgribonvald changed the title Property to customize deployment directory of webapps Customizing deployment directory of webapps May 21, 2018
@jgribonvald jgribonvald force-pushed the customize_deploy_dir branch 3 times, most recently from 9accec9 to 0e8d65b Compare May 21, 2018 16:31
@ChristianMurphy
Copy link
Member

Hey @jgribonvald! 👋
Rest assured this PR has not been forgotten. 😌
Many of the uPortal committers are focused on preparation for Open Apereo 2018 right now. 🔜
More folks should be available to help with reviews after June 6.

@ChristianMurphy
Copy link
Member

Hey @jgribonvald! 👋
Can you help me understand your intended use case for this change?
When should uPortal and the portlets be put outside the server context?

@jgribonvald
Copy link
Contributor Author

jgribonvald commented Jun 14, 2018

@ChristianMurphy
Firstly this params was enable in previous uPortal version
After the need is to deploy on an other directory than tomcat sources/conf, it's really important when you want to deploy quickly a new tomcat version, with that you don't need to backup/move the webapps directory.
You have shibboleth that adopted this way, the deployment should be outside tomcat sources/conf.

@ChristianMurphy
Copy link
Member

Thanks Julien!
The more I hear this described the more I think there may potentially be overlap with existing tomcat tasks, particularly tomcatDeploy.
What I'm trying to understand is:

  • Is there a new use case that is not accounted for by the existing tasks?
  • Is it somewhat covered by the existing tasks, but there is a pain point that needs to be resolved?
  • Is it covered by the existing tasks, but needs better documentation on how to fulfill this use case?

Firstly this params was enable in previous uPortal version

Just because uPortal has done something in the past, doesn't mean uPortal should do the same thing now. 🙂

After the need is to deploy on an other directory than tomcat sources/conf

Would running tomcatDeploy with a different server.base handle this?

it's really important when you want to deploy quickly a new tomcat version

It is important, and uPortal start aims to provide an up-to-date and properly configured tomcat.
Properly configuring tomcat was something that was easy to mess up but not easy to debug in uPortal 4.
uPortal 5 with uPortal-start has resolved that issue with the generated tomcat.
If there is a pain point with the generated tomcat, I'd rather fix it in the generated tomcat, rather than encouraging external tomcat(s).

with that you don't need to backup/move the webapps directory.

Would auto generating a backup folder resolve this concern?

@jgribonvald
Copy link
Contributor Author

Ok I understand all your points !

This needs is to have an other folder not depending on tomcat install and so will be outer of catalina.home and catalina.base, so it's can't be managed by server.base. In this case it's more easy to install a new version of tomcat.

After in other case it's really nice to have an easy to install of the tomcat, but their could be other apps that won't be deployed from uPortal start. Sincerely it's a better things to have a webapps directory outside of tomcat source. For my deployment case only tomcat's provided apps stay into source (as example the manager), and I deploy in all my tomcat the psy-probe app...

Also from your details I think it would be great to add a new target that will upgrade the tomcat version without modifying deployed apps directories expect those embeded into tomcat.

@ChristianMurphy ChristianMurphy requested review from drewwills and bjagg and removed request for drewwills and bjagg June 14, 2018 17:46
@jgribonvald jgribonvald force-pushed the customize_deploy_dir branch from 0e8d65b to 85f69c8 Compare August 21, 2018 17:04
@ChristianMurphy ChristianMurphy requested review from bjagg and cbeach47 and removed request for bjagg July 3, 2019 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants