Add Hints and example for Data Neo4j. #287
Add Hints and example for Data Neo4j. #287
Conversation
Provide native image hints that add required proxy and reflection for Spring Data Elasticsearch Repositories. Provide a Map based Substitution for the org.apache.http.impl.client.BasicAuthCache used by the Elasticsearch REST Client. Move Reactive Spring Data hints to dedicated class to be used by TypeInfo imports. Update docker configuration to include and start Elasticsearch server. Closes spring-atticgh-277
|
Thanks for this contribution @michael-simons. We currently can't use Docker on Docker, so we would need to install Neo4j on our |
|
I think using How are you running MongoDB or elastic? Did you install those on the base image? I cannot imagine you're running their products natively… If so, we would like to have your help making Neo4j native runnable, too :D |
8c6e3b5
to
fa9e8e9
Compare
|
So, I switched the compose script to Neo4j 3.5 and added a hint to the pom about the need for all security services when people might want to use an encrypted connection. Please let me know if this works for you. |
|
Nice, we can maybe try to make it runnable for 0.8.1 then. Do you want to try to add support yourself based on what we did for elasticsearch in fe0e651 and https://repo.spring.io/milestone/org/springframework/experimental/spring-graalvm-native-docs/0.8.0/spring-graalvm-native-docs-0.8.0.zip!/reference/index.html#_using_container_based_build_environment ? |
|
Hi, I tried but I failed miserably. Our deb package is complaining about openjdk not installed (and also about package I started the CI container with When I fix the daemon package (with In the container, I end up with Here are our instructions https://neo4j.com/docs/operations-manual/3.5/installation/linux/debian/ The dl link to the deb is above, tarball would be https://neo4j.com/artifact.php?name=neo4j-community-3.5.22-unix.tar.gz If you can help me getting the service installed, I can add the missing config bits. |
|
I managed to add a running Neo4j 3.5 to the container (also removed the tons of elastic search stack traces), but I cannot manage to get anything build in either the dev or master image. However, mongo or elastic fail as well. I guess this is unrelated. |
|
Ok thanks I will have a deeper look. |
|
I will take care of merging this PR. |
|
Merged with a remaining issue (#300) which is maybe a regression on our side. Thanks a lot @michael-simons, great work. |
This PR provides
Neo4jRepositoriesHintsandNeo4jReactiveRepositoriesHints, triggered by the appropriate auto configuration classes in the latest Spring Boot 2.4.The hints have been added to
RepositoriesHints.In addition,
data-neo4jas an examples has been added. It's basically a copy of thedata-mongosample, with the same domain and the same queries, but for Neo4j.For a successful run of
build.sh, a locally running Neo4j instance is required. The easiest way to get one isPlease feel free to adapt as necessary.
cc @christophstrobl @meistermeier