Skip to content

Commit

Permalink
Merge pull request #4034 from pascalgrimaud/neo4j-docker-compose
Browse files Browse the repository at this point in the history
Neo4j : add to start docker compose script
  • Loading branch information
pascalgrimaud authored Oct 18, 2022
2 parents 473a10e + 855b450 commit d0a4d73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
.startupCommand(DOCKER_COMPOSE_COMMAND)
.context()
.put("neo4jDockerImage", dockerImages.get("neo4j").fullName())
.and()
.and()
.javaDependencies()
.addDependency(groupId("org.springframework.boot"), artifactId("spring-boot-starter-data-neo4j"))
.addDependency(testContainerDependency())
Expand All @@ -45,12 +45,12 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
.add(SOURCE.template("spring.factories"), to("src/test/resources/META-INF/spring.factories"))
.and()
.springMainProperties()
.set(propertyKey("spring.neo4j.uri"), propertyValue("bolt://localhost:7687"))
.set(propertyKey("spring.neo4j.pool.metrics-enabled"), propertyValue("true"))
.and()
.set(propertyKey("spring.neo4j.uri"), propertyValue("bolt://localhost:7687"))
.set(propertyKey("spring.neo4j.pool.metrics-enabled"), propertyValue("true"))
.and()
.springTestProperties()
.set(propertyKey("spring.neo4j.uri"), propertyValue("${TEST_NEO4J_URI}"))
.and()
.set(propertyKey("spring.neo4j.uri"), propertyValue("${TEST_NEO4J_URI}"))
.and()
.springMainLogger("org.neo4j.driver", LogLevel.WARN)
.springTestLogger("org.neo4j.driver", LogLevel.WARN)
.springTestLogger("com.github.dockerjava", LogLevel.WARN)
Expand Down
3 changes: 3 additions & 0 deletions tests-ci/start_docker_compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ fi
if [ -a src/main/docker/mariadb.yml ]; then
docker compose -f src/main/docker/mariadb.yml up -d
fi
if [ -a src/main/docker/neo4j.yml ]; then
docker compose -f src/main/docker/neo4j.yml up -d
fi
if [ -a src/main/docker/mssql.yml ]; then
docker compose -f src/main/docker/mssql.yml up -d
echo "*** wait 40sec"
Expand Down

0 comments on commit d0a4d73

Please sign in to comment.