|
24 | 24 | import java.time.*; |
25 | 25 |
|
26 | 26 | public abstract class ArcadeContainerTemplate { |
27 | | - static final GenericContainer ARCADE; |
| 27 | + static final GenericContainer ARCADE; |
28 | 28 |
|
29 | | - static { |
30 | | - ARCADE = new GenericContainer("arcadedata/arcadedb:latest").withExposedPorts(2480, 6379, 5432, 8182)// |
31 | | - .withStartupTimeout(Duration.ofSeconds(90))// |
32 | | - .withEnv("arcadedb.server.rootPassword", "playwithdata") |
33 | | - .withEnv("arcadedb.server.defaultDatabases", "beer[root]{import:https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/OpenBeer.gz}") |
34 | | - .withEnv("arcadedb.server.plugins", "Redis:com.arcadedb.redis.RedisProtocolPlugin, " +// |
35 | | - "MongoDB:com.arcadedb.mongo.MongoDBProtocolPlugin, " +// |
36 | | - "Postgres:com.arcadedb.postgres.PostgresProtocolPlugin, " +// |
37 | | - "GremlinServer:com.arcadedb.server.gremlin.GremlinServerPlugin").waitingFor(Wait.forListeningPort()); |
38 | | - ARCADE.start(); |
39 | | - } |
| 29 | + static { |
| 30 | + ARCADE = new GenericContainer("arcadedata/arcadedb:latest").withExposedPorts(2480, 6379, 5432, 8182)// |
| 31 | + .withStartupTimeout(Duration.ofSeconds(90)) |
| 32 | + .withEnv("JAVA_OPTS", "-Darcadedb.server.rootPassword=playwithdata " + |
| 33 | + "-Darcadedb.server.defaultDatabases=beer[root]{import:https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/OpenBeer.gz} " + |
| 34 | + "-Darcadedb.server.plugins=Redis:com.arcadedb.redis.RedisProtocolPlugin,MongoDB:com.arcadedb.mongo.MongoDBProtocolPlugin,Postgres:com.arcadedb.postgres.PostgresProtocolPlugin,GremlinServer:com.arcadedb.server.gremlin.GremlinServerPlugin") |
| 35 | + .waitingFor(Wait.forListeningPort()); |
| 36 | + ARCADE.start(); |
| 37 | + } |
40 | 38 |
|
41 | | - protected String host = ARCADE.getHost(); |
42 | | - protected int httpPort = ARCADE.getMappedPort(2480); |
43 | | - protected int redisPort = ARCADE.getMappedPort(6379); |
44 | | - protected int pgsqlPort = ARCADE.getMappedPort(5432); |
45 | | - protected int gremlinPort = ARCADE.getMappedPort(8182); |
| 39 | + protected String host = ARCADE.getHost(); |
| 40 | + protected int httpPort = ARCADE.getMappedPort(2480); |
| 41 | + protected int redisPort = ARCADE.getMappedPort(6379); |
| 42 | + protected int pgsqlPort = ARCADE.getMappedPort(5432); |
| 43 | + protected int gremlinPort = ARCADE.getMappedPort(8182); |
46 | 44 | } |
0 commit comments