-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) · 1.65 KB
/
docker-compose.yml
File metadata and controls
55 lines (53 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
services:
ccf-sandbox:
build:
dockerfile_inline: |
FROM ghcr.io/microsoft/ccf/app/dev/virtual:${CCF_VERSION}
RUN python3 -m venv .venv_ccf_sandbox && \
. .venv_ccf_sandbox/bin/activate && \
pip install -U -q pip && \
pip install -q -U "ccf==$(sed 's/^ccf-//' "/opt/ccf_virtual/share/VERSION_LONG")" && \
pip install -q -U -r "/opt/ccf_virtual/bin/requirements.txt"
command: |
/bin/bash -c '
rm -rf /workspace/sandbox*
/opt/ccf_virtual/bin/sandbox.sh --http2 \
--initial-member-count 1 \
--initial-user-count 1 &
while [ ! -f /workspace/sandbox_common/user0_cert.pem ]; do
sleep 1
done
cp /workspace/sandbox_common/*.pem /workspace/
sleep infinity
'
network_mode: host
healthcheck:
test: [
"CMD-SHELL",
"curl -k -s -f https://localhost:8000/node/state && test -f /workspace/sandbox_common/user0_cert.pem"
]
interval: 1s
retries: 120
volumes:
- ${KMS_WORKSPACE}:/workspace
jwt-issuer:
build:
context: test/utils/jwt
dockerfile_inline: |
FROM node:18-alpine3.16
RUN apk add curl # for healthcheck
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
command: node dist/index.js
network_mode: host
environment:
- KMS_WORKSPACE=/workspace
- JWT_ISSUER_PORT=${JWT_ISSUER_PORT:-}
healthcheck:
test: "curl -k --fail -X POST $(cat /workspace/jwt_issuer_address)/token"
interval: 1s
retries: 120
volumes:
- ${JWT_ISSUER_WORKSPACE}:/workspace