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

Update Tomcat Zip, Tar, Docker tasks to exclude unneeded webapps/directories #337

Open
bjagg opened this issue Jun 17, 2019 · 3 comments
Open

Comments

@bjagg
Copy link
Member

bjagg commented Jun 17, 2019

Is your feature request related to a problem? Please describe.
For a clean, lean Tomcat deployment from these binaries, deployers have to manually remove logs, temp files, and unneeded webapps.

Describe the solution you'd like
Update Gradle tasks that wrap up Tomcat to ignore logs/,work/, temp/, portal/, webapps/docs, webapps/examples, webapps/host-manager, and webapps/manager.

@ChristianMurphy
Copy link
Member

Part of the logic from, https://github.com/Jasig/uPortal-start/blob/262c4096cca4abfb6c8847a880fbae4d88542b6b/gradle/tasks/tomcat.gradle#L166-L183 could be reused.

@bjagg
Copy link
Member Author

bjagg commented Jun 19, 2019

For Dockerfile, COPY does not have exclusions. The recommendation is to run rm ...

COPY . /some/where/
RUN rm -Rf /some/where/e

@bjagg
Copy link
Member Author

bjagg commented Jun 19, 2019

tomcatZip and tomcatTar already have exclusions, just need to add a few more

https://github.com/Jasig/uPortal-start/blob/262c4096cca4abfb6c8847a880fbae4d88542b6b/gradle/tasks/tomcat.gradle#L198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants