Skip to content

Commit d0cdd1b

Browse files
authored
Merge pull request #71 from msmygit/main
Upgrade to Stargate v2
2 parents aa80452 + 504ecf2 commit d0cdd1b

File tree

2 files changed

+70
-16
lines changed

2 files changed

+70
-16
lines changed

.github/workflows/maven.yml

Lines changed: 69 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,81 @@ 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
19+
coordinator:
20+
image: stargateio/coordinator-4_0:v2
21+
ports:
22+
- "9042:9042"
23+
- "8081:8081"
24+
- "8090:8090"
2125
env:
22-
CLUSTER_NAME: stargate
23-
CLUSTER_VERSION: 3.11
24-
DEVELOPER_MODE: true
25-
DATACENTER_NAME: datacenter1
2626
JAVA_OPTS: "-Xmx2G"
27+
CLUSTER_NAME: c4-stargate-cluster
28+
CLUSTER_VERSION: 4.0
29+
RACK_NAME: rack1
30+
DATACENTER_NAME: datacenter1
31+
DEVELOPER_MODE: true
32+
33+
restapi:
34+
image: stargateio/restapi:v2
2735
ports:
28-
- 8080:8080
29-
- 8081:8081
30-
- 8082:8082
31-
- 8090:8090
32-
- 9042:9042
36+
- "8082:8082"
37+
env:
38+
QUARKUS_HTTP_CORS: true
39+
QUARKUS_HTTP_CORS_ORIGINS: '*'
40+
QUARKUS_HTTP_CORS_METHODS: POST,GET,PUT,OPTIONS,DELETE
41+
QUARKUS_GRPC_CLIENTS_BRIDGE_HOST: coordinator
42+
QUARKUS_GRPC_CLIENTS_BRIDGE_PORT: 8091
43+
QUARKUS_HTTP_ACCESS_LOG_ENABLED: true
44+
QUARKUS_LOG_LEVEL: INFO
45+
46+
docsapi:
47+
image: stargateio/docsapi:v2
48+
ports:
49+
- "8180:8180"
50+
env:
51+
QUARKUS_HTTP_CORS: true
52+
QUARKUS_HTTP_CORS_ORIGINS: '*'
53+
QUARKUS_HTTP_CORS_METHODS: POST,GET,PUT,OPTIONS,DELETE
54+
QUARKUS_GRPC_CLIENTS_BRIDGE_HOST: coordinator
55+
QUARKUS_GRPC_CLIENTS_BRIDGE_PORT: 8091
56+
QUARKUS_HTTP_ACCESS_LOG_ENABLED: true
57+
QUARKUS_LOG_LEVEL: INFO
58+
59+
graphqlapi:
60+
image: stargateio/graphqlapi:v2
61+
ports:
62+
- "8080:8080"
63+
env:
64+
QUARKUS_HTTP_CORS: true
65+
QUARKUS_HTTP_CORS_ORIGINS: '*'
66+
QUARKUS_HTTP_CORS_METHODS: POST,GET,PUT,OPTIONS,DELETE
67+
QUARKUS_GRPC_CLIENTS_BRIDGE_HOST: coordinator
68+
QUARKUS_GRPC_CLIENTS_BRIDGE_PORT: 8091
69+
QUARKUS_HTTP_ACCESS_LOG_ENABLED: true
70+
QUARKUS_LOG_LEVEL: INFO
71+
3372
steps:
34-
- uses: actions/checkout@v2
73+
74+
# Kill unused mono process that uses port 8084 starting on Ubuntu 20.04 GitHub runner
75+
# This is brute force but other attempts did not work
76+
# see: https://github.com/actions/runner-images/issues/2821
77+
# this doesn't seem to stop the process:
78+
# sudo systemctl stop mono-xsp4.service || true
79+
# neither does uninstalling mono:
80+
# sudo apt-get purge --auto-remove ubuntu-mono mono-runtime
81+
- name: Disable Mono
82+
run: |
83+
sudo killall mono
84+
sudo lsof -iTCP -n -P | sort -k1
85+
86+
- uses: actions/checkout@v3
87+
3588
- name: Set up JDK 11
36-
uses: actions/setup-java@v2
89+
uses: actions/setup-java@v3
3790
with:
3891
java-version: "11"
3992
distribution: "adopt"
93+
cache: 'maven'
94+
4095
- name: Test with Maven
41-
run: mvn test
42-
96+
run: mvn test

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<json-schema.version>1.5.1</json-schema.version>
3232
<httpclient.version>5.2.1</httpclient.version>
3333
<pulsar.version>2.11.0</pulsar.version>
34-
<stargate-grpc.version>1.0.63</stargate-grpc.version>
34+
<stargate-grpc.version>2.0.12</stargate-grpc.version>
3535
<grpc-netty.version>1.52.1</grpc-netty.version>
3636

3737
<stargate-sdk.version>2.0.1</stargate-sdk.version>

0 commit comments

Comments
 (0)