Skip to content

Commit c6a20c1

Browse files
authored
Merge pull request #118 from code0-tech/44-add-boot-tests/aquila
Add boot test for aquila
2 parents bae7bc6 + 6c24c22 commit c6a20c1

File tree

1 file changed

+67
-2
lines changed

1 file changed

+67
-2
lines changed

.gitlab/ci/container-boot.gitlab-ci.yml

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
- .dind
44
stage: container:boot
55
image: ghcr.io/code0-tech/build-images/reticulum-builder:177.1-ruby-3.2.2
6+
variables:
7+
RETICULUM_IMAGE_BASE: ghcr.io/code0-tech/reticulum/ci-builds
8+
SAGITTARIUS_IMAGE: $RETICULUM_IMAGE_BASE/sagittarius:${CI_PIPELINE_ID}-${SAGITTARIUS_VARIANT}
9+
AQUILA_IMAGE: $RETICULUM_IMAGE_BASE/aquila:${CI_PIPELINE_ID}
610

711
.container:boot:sagittarius:
812
extends:
@@ -11,11 +15,10 @@
1115
- container:sagittarius
1216
parallel:
1317
matrix:
14-
- VARIANT:
18+
- SAGITTARIUS_VARIANT:
1519
- ce
1620
- ee
1721
variables:
18-
SAGITTARIUS_IMAGE: ghcr.io/code0-tech/reticulum/ci-builds/sagittarius:${CI_PIPELINE_ID}-${VARIANT}
1922
CURL_IMAGE: curlimages/curl:8.5.0
2023
DOCKER_ARGS: ""
2124
before_script:
@@ -76,3 +79,65 @@ container:boot:sagittarius:grpc:
7679
script:
7780
- scripts/grpc_check_health --host docker:50051 --service liveness --retries 20
7881
- scripts/grpc_check_health --host docker:50051 --service readiness --retries 20
82+
83+
container:boot:aquila:
84+
extends:
85+
- .container:boot
86+
needs:
87+
- container:aquila
88+
- container:sagittarius
89+
variables:
90+
SAGITTARIUS_VARIANT: ce
91+
script:
92+
- bundle install
93+
- docker network create boot
94+
- >
95+
docker run
96+
--detach
97+
--name postgres
98+
--network boot
99+
--network-alias postgres
100+
--env POSTGRES_USER=sagittarius
101+
--env POSTGRES_PASSWORD=sagittarius
102+
--env POSTGRES_DB=sagittarius_production
103+
postgres:16.1
104+
- >
105+
docker run
106+
--detach
107+
--name nats
108+
--network boot
109+
--network-alias nats
110+
nats:2.11.8
111+
-js
112+
- docker pull $SAGITTARIUS_IMAGE
113+
- docker pull $AQUILA_IMAGE
114+
- >
115+
docker run
116+
--detach
117+
--name sagittarius
118+
--network boot
119+
--network-alias sagittarius
120+
--volume $(pwd)/container/sagittarius/sagittarius.yml:/sagittarius/config/sagittarius.yml
121+
--env SAGITTARIUS_PREPARE_DATABASE=true
122+
--publish 50051:50051
123+
$SAGITTARIUS_IMAGE
124+
bin/grpc_server
125+
- docker ps --all
126+
- docker logs -f sagittarius &
127+
- scripts/grpc_check_health --host docker:50051 --service readiness --retries 20
128+
- >
129+
docker run
130+
--detach
131+
--name aquila
132+
--network boot
133+
--network-alias aquila
134+
--env NATS_URL=nats://nats:4222
135+
--env MODE=dynamic
136+
--env WITH_HEALTH_SERVICE=true
137+
--env GRPC_HOST=0.0.0.0
138+
--env SAGITTARIUS_URL=http://sagittarius:50051
139+
--publish 8081:8081
140+
$AQUILA_IMAGE
141+
- docker logs -f aquila &
142+
- scripts/grpc_check_health --host docker:8081 --service liveness --retries 20
143+
- scripts/grpc_check_health --host docker:8081 --service readiness --retries 20

0 commit comments

Comments
 (0)