Skip to content

Commit

Permalink
Attempt to fix TeamCity build:
Browse files Browse the repository at this point in the history
- Bump neo4j image to 4.3 so that it uses the latest
- Increase memory for the container

(cherry picked from commit 1c70a9a)
  • Loading branch information
AzuObs committed Apr 22, 2022
1 parent 639831f commit 0b633e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ subprojects {
// neo4jDockerImage system property is used in TestContainerUtil
systemProperties 'user.language' : 'en' ,
'user.country ' : 'US',
'neo4jDockerImage' : System.getProperty("NEO4JVERSION") ? 'neo4j:' + System.getProperty("NEO4JVERSION") + '-enterprise' : 'neo4j:5.0.0-dev-enterprise',
'neo4jCommunityDockerImage': System.getProperty("NEO4JVERSION") ? 'neo4j:' + System.getProperty("NEO4JVERSION") : 'neo4j:5.0.0-dev'
'neo4jDockerImage' : System.getProperty("NEO4JVERSION") ? 'neo4j:' + System.getProperty("NEO4JVERSION") + '-enterprise' : 'neo4j:5.0-enterprise',
'neo4jCommunityDockerImage': System.getProperty("NEO4JVERSION") ? 'neo4j:' + System.getProperty("NEO4JVERSION") : 'neo4j:5.0'

maxHeapSize = "8G"
forkEvery = 50
Expand Down
2 changes: 1 addition & 1 deletion test-utils/src/main/java/apoc/util/TestContainerUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private static Neo4jContainerExtension createNeo4jContainer(String dockerImage,
.withFileSystemBind(canonicalPath, "/var/lib/neo4j/import") // map the "target/import" dir as the Neo4j's import dir
.withEnv("NEO4J_ACCEPT_LICENSE_AGREEMENT", "yes")
// .withDebugger() // uncomment this line for remote debbuging inside docker's neo4j instance
.withCreateContainerCmdModifier(cmd -> cmd.withMemory(1024 * 1024 * 1024l))
.withCreateContainerCmdModifier(cmd -> cmd.withMemory(2024 * 1024 * 1024l))

// set uid if possible - export tests do write to "/import"
.withCreateContainerCmdModifier(cmd -> {
Expand Down

0 comments on commit 0b633e1

Please sign in to comment.