@@ -18,72 +18,79 @@ jobs:
1818 services :
1919 coordinator :
2020 image : stargateio/coordinator-4_0:v2
21- networks :
22- - stargate
2321 ports :
2422 - " 9042:9042"
2523 - " 8081:8081"
26- - " 8082:8082"
27- - " 8084:8084"
2824 - " 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
25+ env :
26+ 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+
3733 restapi :
3834 image : stargateio/restapi:v2
39- depends_on :
40- - coordinator
41- networks :
42- - stargate
4335 ports :
4436 - " 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
57- ports :
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
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+
6546 docsapi :
6647 image : stargateio/docsapi:v2
67- depends_on :
68- - coordinator
69- networks :
70- - stargate
7148 ports :
7249 - " 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 :
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+
8172 steps :
82- - 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+
8388 - name : Set up JDK 11
84- uses : actions/setup-java@v2
89+ uses : actions/setup-java@v3
8590 with :
8691 java-version : " 11"
8792 distribution : " adopt"
93+ cache : ' maven'
94+
8895 - name : Test with Maven
8996 run : mvn test
0 commit comments