Skip to content

Commit

Permalink
add local network container
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivo25 committed Aug 28, 2023
1 parent 4fcfafb commit a193633
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/test-tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,38 @@ jobs:
deploying-network:
timeout-minutes: 25
runs-on: ubuntu-latest
services:
mina-local-network:
image: o1labs/mina-local-network:rampup-latest-lightnet
env:
NETWORK_TYPE: 'single-node'
PROOF_LEVEL: 'none'
ports:
- 3085:3085
- 5432:5432
- 8080:8080
- 8181:8181
# TODO: Disable logging for container as the workaround of long post-job-cleanup phase
# - Will be fixed by improving logging as part of the work on:
# - https://hub.docker.com/r/o1labs/mina-local-network
options: --log-driver=none
steps:
- name: Wait for Mina Network readiness
uses: o1-labs/wait-for-mina-network-action@v1
with:
mina-graphql-port: 8080
max-attempts: 60
polling-interval-ms: 10000
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Run tutorial
env:
USE_LOCAL_NETWORK: 'true'
continue-on-error: false
run: |
npm ci
npm run build --silent
git config --global user.email "[email protected]"
git config --global user.name "Test"
npx ts-node scripts/tutorial-runner.ts docs/zkapps/tutorials/03-deploying-to-a-network.mdx
2 changes: 1 addition & 1 deletion docs/zkapps/tutorials/03-deploying-to-a-network.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ zk config
```

```sh
$ echo '{ "privateKey": "EKE26wiE37cwvnsNHBB1NVQ27RstWdxEyzAbnhrYqnYGa1NoAcBT", "publicKey": "B62qpyCwp3qvU7sULu4RpWwzPUmKsSgFgPUjjFb3XXqYZX6ZUMtG7Ju" }' > keys/live-local-network.json
$ echo '{ "privateKey": "EKEnVLUhYHDJvgmgQu5SzaV8MWKNfhAXYSkLBRk5KEfudWZRbs4P", "publicKey": "B62qq1miZzh8QMumJ2dhJSvPxdeShGQ2G2cH4YXwxNLpPSvKdRVTb3q" }' > keys/live-local-network.json
$ echo '{ "version": 1, "deployAliases": { "live-local-network": { "url": "https://api.minascan.io/node/berkeley/v1/graphql", "feepayerKeyPath": "keys/live-local-network.json", "feepayerAlias": "cli-fee-payer", "keyPath": "keys/live-local-network.json", "fee": "0.1" } } }' > config.json
$ yes | zk deploy live-local-network
```
Expand Down

0 comments on commit a193633

Please sign in to comment.