Reduce Minion docker image size

Description

Let's work to reduce the image size of the Minion - the image for the 25.1.2 tag is currently at 717.61 MB.

Things we can try:

  • Avoid copying install binary to image

  • Installing from .tgz instead of RPM

  • Using a smaller base image (all we need is a JRE?)

Acceptance / Success Criteria

None

Attachments

3
  • 18 Mar 2020, 09:16 AM
  • 18 Mar 2020, 09:15 AM
  • 18 Mar 2020, 09:14 AM

Lucidchart Diagrams

Activity

Jesse White March 18, 2020 at 1:07 PM

Resolving this given that we've reduced the image size by about 50% already. If we need to reduce it further we can look at jlink and/or reducing the duplicate JARs in the Minion tarball.

Ronny Trommer March 18, 2020 at 9:22 AM

A next step to could be investigating jlink to build a modular JRE runtime for our Minion.

Ronny Trommer March 18, 2020 at 9:15 AM
Edited

We have migrated in issue https://opennms.atlassian.net/browse/NMS-12483#icft=NMS-12483 from RPM to tarball installation and use JRE instead of the JDK. Additionally, we use Ubuntu Eoan instead of CentOS 8. The current progress reducing the Minion image size:

Fixed

Details

Assignee

Reporter

Fix versions

Priority

PagerDuty

Created January 16, 2020 at 6:57 PM
Updated March 18, 2020 at 1:07 PM
Resolved March 18, 2020 at 1:07 PM

Flag notifications