Skip to content

Conversation

@lizard-boy
Copy link

Background

localstack#11139 introduced a Java LPM package that can install and manage multiple LTS versions of JRE.

This PR integrates this package across the codebase.

Changes

  • The default system-wide JRE that was previously installed during Docker build is removed
  • Instead, each component has an explicit dependency on the Java package, and is responsible for installing the required version

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR integrates a Java LPM (LocalStack Package Manager) package across the LocalStack codebase, removing the default system-wide JRE installation and making each component responsible for its required Java version.

  • Removed system-wide JRE installation from Dockerfile, shifting responsibility to individual components
  • Added Java dependencies to DynamoDB, EventRuler, OpenSearch, Elasticsearch, StepFunctions, and Kinesis Connector
  • Specified different Java versions for components (e.g., Java 11 for OpenSearch, Java 8 for Elasticsearch)
  • Updated environment variable setup and JVM initialization processes in affected components
  • Modified package installers to include Java installation as part of their preparation steps

10 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings

Comment on lines +469 to +470
elasticsearch_installer = elasticsearch_package.get_installer(self.version)
java_home = java_package.get_installer(elasticsearch_installer.java_version).get_java_home()
Copy link

Choose a reason for hiding this comment

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

style: Consider using a constant for the default Java options

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.

3 participants