Commit ed1d670 1 parent 6444057 commit ed1d670 Copy full SHA for ed1d670
File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 3
3
diracx-cs-store :
4
4
# Volume used to store the pair of keys to sign the tokens
5
5
diracx-key-store :
6
+ # Volume used to store the certificates of dirac
7
+ certs_data :
6
8
# Volume used to store the jwks of the IAM service
7
9
diracx-iam-key-store :
8
10
@@ -99,6 +101,14 @@ services:
99
101
mysql :
100
102
condition : service_healthy
101
103
command : /home/dirac/LocalRepo/ALTERNATIVE_MODULES/DIRAC/tests/CI/check_db_initialized.sh
104
+
105
+ dirac-init-certificates :
106
+ image : ghcr.io/diracgrid/management/certificates-generation:latest
107
+ container_name : dirac-init-certificates
108
+ volumes :
109
+ - certs_data:/ca/certs/
110
+ entrypoint : |
111
+ /entrypoint.sh
102
112
pull_policy : always
103
113
104
114
dirac-server :
@@ -125,6 +135,7 @@ services:
125
135
volumes :
126
136
- diracx-cs-store:/cs_store
127
137
- diracx-key-store:/signing-key
138
+ - certs_data:/ca/certs
128
139
environment :
129
140
- DIRACX_CONFIG_BACKEND_URL=git+file:///cs_store/initialRepo
130
141
- DIRACX_SERVICE_AUTH_TOKEN_KEY=file:///signing-key/rs256.key
@@ -139,6 +150,8 @@ services:
139
150
user : " ${DIRAC_UID}:${DIRAC_GID}"
140
151
depends_on :
141
152
- dirac-server
153
+ volumes :
154
+ - certs_data:/ca/certs
142
155
ulimits :
143
156
nofile : 8192
144
157
pull_policy : always
Original file line number Diff line number Diff line change @@ -269,6 +269,11 @@ installDIRAC() {
269
269
echo " $DIRAC "
270
270
echo " $PATH "
271
271
272
+ if ! dirac-proxy-init -g dirac_admin --nocs --no-upload -C " ${SERVERINSTALLDIR} /user/client.pem" -K " ${SERVERINSTALLDIR} /user/client.key" " ${DEBUG} " ; then
273
+ echo ' ERROR: dirac-proxy-init --nocs --no-upload failed' >&2
274
+ exit 1
275
+ fi
276
+
272
277
# now configuring
273
278
274
279
if [[ -n " ${INSTALLATION_BRANCH} " ]]; then
You can’t perform that action at this time.
0 commit comments