Skip to content

Commit e3ce7d0

Browse files
committed
test: Support new diracx packaging
1 parent 8724ef1 commit e3ce7d0

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

tests/CI/docker-compose.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,20 @@ services:
120120
- DIRACX_SERVICE_AUTH_TOKEN_KEY="file:///signing-key/rs256.key"
121121
volumes:
122122
- diracx-key-store:/signing-key/
123+
# As the diracx images don't run as root we need to change the permissions of the /cs_store/ directory as well
124+
- diracx-cs-store:/cs_store/
123125
# We need to allow everybody to read the private keys
124126
# Because the users are different between the DIRAC and DiracX containers
125127
entrypoint: |
126-
bash -c "ssh-keygen -P '' -trsa -b4096 -mPEM -f/signing-key/rs256.key && chmod o+r /signing-key/rs256.*"
128+
bash -xc "ssh-keygen -P '' -trsa -b4096 -mPEM -f/signing-key/rs256.key && chmod o+r /signing-key/rs256.* && chmod -R o=u /cs_store"
127129
pull_policy: always
128130

129131
diracx-init-cs:
130-
image: ghcr.io/diracgrid/diracx/server
132+
image: ghcr.io/diracgrid/diracx/client:dev
131133
container_name: diracx-init-cs
134+
depends_on:
135+
diracx-init-key:
136+
condition: service_completed_successfully # Let the init container set the permission on /cs_store/
132137
environment:
133138
- DIRACX_CONFIG_BACKEND_URL=git+file:///cs_store/initialRepo
134139
- DIRACX_SERVICE_AUTH_TOKEN_KEY=file:///signing-key/rs256.key
@@ -140,7 +145,7 @@ services:
140145
pull_policy: always
141146

142147
diracx-init-db:
143-
image: ghcr.io/diracgrid/diracx/server
148+
image: ghcr.io/diracgrid/diracx/services:dev
144149
container_name: diracx-init-db
145150
depends_on:
146151
mysql:
@@ -152,7 +157,7 @@ services:
152157
pull_policy: always
153158

154159
diracx:
155-
image: ghcr.io/diracgrid/diracx/server
160+
image: ghcr.io/diracgrid/diracx/services:dev
156161
container_name: diracx
157162
environment:
158163
- DIRACX_CONFIG_BACKEND_URL=git+file:///cs_store/initialRepo
@@ -175,6 +180,8 @@ services:
175180
volumes:
176181
- diracx-cs-store:/cs_store/
177182
- diracx-key-store:/signing-key/
183+
entrypoint: |
184+
/entrypoint.sh bash -xc 'uvicorn --factory diracx.routers:create_app'
178185
179186
healthcheck:
180187
test: ["CMD", "/entrypoint.sh", "curl", "-f", "http://localhost:8000/.well-known/openid-configuration"]

tests/CI/envs/opensearchproject/opensearch:2.1.0.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ cluster.routing.allocation.disk.watermark.high=300mb
66
plugins.security.disabled=true
77
# Elasticsearch allocates 1GB of memory by default. As resources are limited
88
# and elasticsearch performance isn't critical in CI, limit this to 256MB
9-
"OPENSEARCH_JAVA_OPTS=-Xms256m -Xmx256m" # minimum and maximum Java heap size
9+
OPENSEARCH_JAVA_OPTS=-Xms256m -Xmx256m

0 commit comments

Comments
 (0)