Skip to content

Commit 83cf4ce

Browse files
committed
Upgrade to Stargate v2
1 parent 4f6092d commit 83cf4ce

File tree

1 file changed

+62
-15
lines changed

1 file changed

+62
-15
lines changed

.github/workflows/maven.yml

Lines changed: 62 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,68 @@ jobs:
1616
ASTRA_DB_CLIENT_SECRET: ${{ secrets.ASTRA_DB_CLIENT_SECRET }}
1717
runs-on: ubuntu-latest
1818
services:
19-
stargate:
20-
image: stargateio/stargate-3_11:v1.0.63
21-
env:
22-
CLUSTER_NAME: stargate
23-
CLUSTER_VERSION: 3.11
24-
DEVELOPER_MODE: true
25-
DATACENTER_NAME: datacenter1
26-
JAVA_OPTS: "-Xmx2G"
19+
coordinator:
20+
image: stargateio/coordinator-4_0:v2
21+
networks:
22+
- stargate
23+
ports:
24+
- "9042:9042"
25+
- "8081:8081"
26+
- "8082:8082"
27+
- "8084:8084"
28+
- "8090:8090"
29+
mem_limit: 2G
30+
environment:
31+
- JAVA_OPTS="-Xmx2G"
32+
- CLUSTER_NAME=c4-stargate-cluster
33+
- CLUSTER_VERSION=4.0
34+
- RACK_NAME=rack1
35+
- DATACENTER_NAME=datacenter1
36+
- DEVELOPER_MODE=true
37+
restapi:
38+
image: stargateio/restapi:v2
39+
depends_on:
40+
- coordinator
41+
networks:
42+
- stargate
43+
ports:
44+
- "8082:8082"
45+
mem_limit: 2G
46+
environment:
47+
- QUARKUS_GRPC_CLIENTS_BRIDGE_HOST=coordinator
48+
- QUARKUS_GRPC_CLIENTS_BRIDGE_PORT=8091
49+
- QUARKUS_HTTP_ACCESS_LOG_ENABLED=true
50+
- QUARKUS_LOG_LEVEL=INFO
51+
graphqlapi:
52+
image: stargateio/graphqlapi:v2
53+
depends_on:
54+
- coordinator
55+
networks:
56+
- stargate
2757
ports:
28-
- 8080:8080
29-
- 8081:8081
30-
- 8082:8082
31-
- 8090:8090
32-
- 9042:9042
58+
- "8080:8080"
59+
mem_limit: 2G
60+
environment:
61+
- QUARKUS_GRPC_CLIENTS_BRIDGE_HOST=coordinator
62+
- QUARKUS_GRPC_CLIENTS_BRIDGE_PORT=8091
63+
- QUARKUS_HTTP_ACCESS_LOG_ENABLED=true
64+
- QUARKUS_LOG_LEVEL=INFO
65+
docsapi:
66+
image: stargateio/docsapi:v2
67+
depends_on:
68+
- coordinator
69+
networks:
70+
- stargate
71+
ports:
72+
- "8180:8180"
73+
mem_limit: 2G
74+
environment:
75+
- QUARKUS_GRPC_CLIENTS_BRIDGE_HOST=coordinator
76+
- QUARKUS_GRPC_CLIENTS_BRIDGE_PORT=8091
77+
- QUARKUS_HTTP_ACCESS_LOG_ENABLED=true
78+
- QUARKUS_LOG_LEVEL=INFO
79+
networks:
80+
stargate:
3381
steps:
3482
- uses: actions/checkout@v2
3583
- name: Set up JDK 11
@@ -38,5 +86,4 @@ jobs:
3886
java-version: "11"
3987
distribution: "adopt"
4088
- name: Test with Maven
41-
run: mvn test
42-
89+
run: mvn test

0 commit comments

Comments
 (0)