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

Allow BUILD file to override the default launcher script for bazel run #92

Closed
plaird opened this issue Mar 7, 2021 · 1 comment
Closed
Assignees

Comments

@plaird
Copy link
Contributor

plaird commented Mar 7, 2021

We have the launcher script that is invoked when a user issues a run command via bazel:

bazel run //projects/myservice

It is hardcoded in springboot.bzl. We have a couple of open issues related to the contents #16 and #91. While those are small updates, it would be nice for users to be able to replace it and make any changes they would like. For example, to run custom steps prior to launch of the Spring Boot app.

For this issue, allow the user to pass in a file as a rule attribute.

@plaird
Copy link
Contributor Author

plaird commented Apr 16, 2021

This was implemented with the bazelrun_script attribute. https://github.com/salesforce/rules_spring/tree/master/springboot#customizing-bazel-run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant