-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Integrate JPA into Shamrock #22
Conversation
It works for me but only on module P.S. the docker image seems to still be running after a build, so subsequent builds fail because of the TCP port being taken. |
P.P.S. I suspect the "docker stop" you begin with is pointless as the name is randomly assigned during the build, so any attempt to stop it would unlikely match the existing container instances. |
@Sanne go on PTO :) |
Damn, it does work fine here with the container stopping (at least not showing up on docker ps). What command do you run precisely? |
@Sanne I confirm I see the container go down and a new one showing up between |
It works for me on both Linux(centos) and Mac, and I think it looks good, so I am going to merge this. |
Hey @stuartwdouglas and all,
Can you review this PR and also test it locally to let me know if it all works fine for you.
It expects a docker engine to run locally or via Docker for macos.
A couple of points to review specifically:
jpa-strict
is a trimmed down version ofstrict
to help track problems more easily. Sanne felt it easier to keep it around. If has quite a few dups compared tostrict
but I guess that's ok. If you see areas were we could strip it down further, let me know. I did a lousy initial job.strict
also contains the JPA testsversion
in each project (did not know how to share it)compile
phase so that it is started for the unit test runs. Note that I stop it fist in case the build failed and the container is not properly stopped during the previous runpost-integration-test
phase so that it runs during native-image tests and then stopsMappings to phases might be better. I noticed that your shamrock plugin does not map to phases but I'm not sure why it works for you and not for me in such phaseless setting.