uPortal-Project / uPortal-start

CLI tools for implementing uPortal, beginning with version 5.0.0
Apache License 2.0
19 stars 53 forks source link

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

Open bjagg opened 5 years ago

bjagg commented 5 years ago

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 commented 5 years ago

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

bjagg commented 5 years ago

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

COPY . /some/where/
RUN rm -Rf /some/where/e
bjagg commented 5 years ago

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