forked from LedgerHQ/app-everscale
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Docker Compose and GDB debug script debug purposes
- Create docker-compose.yml for Speculos emulator setup - Add gdb.sh script to simplify debugging workflow - Configure container with source, binary, and debug port mappings
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# version: "3.7" | ||
|
||
services: | ||
nanosp: | ||
image: ghcr.io/blooo-io/speculos:latest | ||
volumes: | ||
- ./bin:/speculos/apps | ||
- ./src:/speculos/sources | ||
- ./build:/speculos/build | ||
ports: | ||
- "5000:5000" # api | ||
- "40000:40000" # apdu | ||
environment: | ||
- GDB_DIRECTORY_LIST="/speculos/sources:/speculos/sources/ui:/speculos/sources/handler:" | ||
command: "-d --model nanosp build/nanos2/bin/app.elf --display headless --apdu-port 40000" | ||
# Add `--vnc-password "<password>"` for macos users to use built-in vnc client. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
docker compose up -d | ||
|
||
# Wait for the container to start | ||
until docker inspect -f '{{.State.Status}}' app-everscale-nanosp-1 | grep -q "running"; do | ||
sleep 1 | ||
done | ||
|
||
docker exec -it app-everscale-nanosp-1 ./tools/debug.sh apps/app.elf | ||
|
||
docker compose down |