-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yaml
54 lines (50 loc) · 1.34 KB
/
docker-compose.yaml
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
version: '3.0'
services:
builder:
container_name: ledger-builder
build:
dockerfile: ./Dockerfile.builder
context: .
privileged: true
command: bash -c "while true; do sleep 3600; done;"
ports:
- "5000:5000"
- "9999:9999"
- "40000:40000"
- "41000:41000"
volumes:
- .:/app
- /dev/bus/usb:/dev/bus/usb
- /etc/udev:/etc/udev
# speculos:
# container_name: ledger-speculos
# image: speculos
# command: --model nanos ./apps/app.elf --sdk 2.0 --seed "secret" --display headless --apdu-port 40000 --vnc-port 41000
# volumes:
# - ./bin:/speculos/apps
# profiles:
# - donotstart
# ports:
# - "40000:40000"
# - "41000:41000"
# - "1234:1234"
# - "5000:5000"
# functional test
ftest:
container_name: ledger-functional-tests
build:
context: .
dockerfile: Dockerfile.speculos
volumes:
- ./bin:/speculos/app
- ./:/tmp/kaspa
entrypoint: bash
command: -c "cd /tmp/kaspa/tests && pytest --tb=short --device ${TEST_DEVICE}"
# unit tests
utest:
container_name: ledger-unit-tests
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
entrypoint: bash
command: -c "cd /app/unit-tests && cmake -Bbuild -H. && make -C build && CTEST_OUTPUT_ON_FAILURE=1 make -C build test"
volumes:
- .:/app