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

FIX #1491 DockerPlugin doesn't work with multiple main classes #1535

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

muuki88
Copy link
Contributor

@muuki88 muuki88 commented Feb 9, 2023

This PR adds a script that matches the entrypoint in the Dockerfile. However you will still have to add a -main class argument to specify what you actually want to run, as there is no "default main class".

Example on specify the main class as a parameter

docker run <your image name> -main com.example.Main2

Thanks to @fspillner for the inspiration and 90% of the code ❤️

@muuki88 muuki88 added minor release drafter version bugfix release drafter category labels Feb 9, 2023
@muuki88 muuki88 merged commit 79ccdf6 into master Feb 9, 2023
@muuki88 muuki88 deleted the sbt-native-packager-1491 branch February 9, 2023 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix release drafter category minor release drafter version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant