Skip to content

Conversation

@adutra
Copy link
Contributor

@adutra adutra commented Dec 27, 2024

Fixes #542.

The main issue was that the "main" startScripts task was configured for the shaded jar, but it shouldn't have: this task produces scripts suitable for the "main" distribution; the shadow jar plugin comes with its own task, startShadowScripts that produces scripts for the "shaded" distribution.

I manually verified that both distributions contain the required jars, that both contain scripts called polaris-service, and that the scripts work.

This PR also switches the docker layout to "main" (exploded jars) instead of "shadow" (uber-jar). I manually verified that images built with this layout work.

Finally, this PR also fixes the fact that the shadow distribution was missing the LICENSE and NOTICE files.

@adutra adutra force-pushed the fix-service-distributions branch from 52b19dc to 022a931 Compare December 27, 2024 15:51
into(project.layout.buildDirectory.dir("docker-dist"))
from(startScripts) { into("bin") }
from(shadowJar) { into("lib") }
doFirst { delete(project.layout.buildDirectory.dir("regtest-dist")) }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure why this doFirst section was introduced. I do not see any "regtest-dist" directory in the codebase.

@jbonofre jbonofre merged commit 231dde7 into apache:main Dec 27, 2024
5 checks passed
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.

polaris-service binary distribution doesn't start

2 participants