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

[Bug][Worker] Replace jre with jdk #15764

Merged
merged 2 commits into from
Mar 26, 2024
Merged

[Bug][Worker] Replace jre with jdk #15764

merged 2 commits into from
Mar 26, 2024

Conversation

Gallardot
Copy link
Member

Purpose of the pull request

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

@@ -15,7 +15,7 @@
# limitations under the License.
#

FROM eclipse-temurin:8-jre
FROM eclipse-temurin:8-jdk
Copy link
Member

@SbloodyS SbloodyS Mar 25, 2024

Choose a reason for hiding this comment

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

It's better to replace all Dockerfile to jdk.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's better to keep things the way they are. Because only Worker Server and Standalone Server require JDK, JRE is sufficient for other components. Unless other components need it as well.

Copy link
Member

@SbloodyS SbloodyS Mar 25, 2024

Choose a reason for hiding this comment

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

You are right. So only Standalone needs to be added too.

Copy link
Member

Choose a reason for hiding this comment

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

If the task that relies on JAVA_HOME uses an environment to import the JAVA_HOME, do we still need to change the Docker file?

Copy link
Member Author

Choose a reason for hiding this comment

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

If the task that relies on JAVA_HOME uses an environment to import the JAVA_HOME, do we still need to change the Docker file?

@ruanwenjun
Yes, because the JAVA task requires javac to compile java code, and this command requires the JDK to be installed, which is not available when only the JRE is installed.

Copy link
Member Author

Choose a reason for hiding this comment

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

If the task that relies on JAVA_HOME uses an environment to import the JAVA_HOME, do we still need to change the Docker file?

@ruanwenjun
If the worker server does not provide a basic working environment, users will have to install jdk and rebuild the docker image themselves, which can avoid some security issues, but it is not very user friendly.

Copy link
Member

Choose a reason for hiding this comment

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

Please add this change to Standalone together.

Copy link
Member Author

@Gallardot Gallardot Mar 26, 2024

Choose a reason for hiding this comment

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

Please add this change to Standalone together.

Standalone Server already uses a docker image with JDK

@SbloodyS SbloodyS added improvement make more easy to user or prompt friendly 3.2.2 labels Mar 25, 2024
@SbloodyS SbloodyS added this to the 3.2.2 milestone Mar 25, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 39.09%. Comparing base (bcf1b67) to head (9cb7b54).

❗ Current head 9cb7b54 differs from pull request most recent head 2b3dd1f. Consider uploading reports for the commit 2b3dd1f to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #15764      +/-   ##
============================================
- Coverage     39.11%   39.09%   -0.03%     
+ Complexity     4854     4849       -5     
============================================
  Files          1316     1316              
  Lines         44936    44936              
  Branches       4797     4797              
============================================
- Hits          17577    17566      -11     
- Misses        25467    25478      +11     
  Partials       1892     1892              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Mar 25, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@rickchengx rickchengx left a comment

Choose a reason for hiding this comment

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

LGTM

@rickchengx rickchengx merged commit 5466117 into apache:dev Mar 26, 2024
60 checks passed
@Gallardot Gallardot deleted the fix-javac branch March 26, 2024 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.2.2 backend document improvement make more easy to user or prompt friendly ready-to-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Question] Javac not found in Java task
5 participants