Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,6 @@ jobs:
uses: dfinity/setup-dfx@main
- name: 'Setup Node'
uses: ./.github/actions/setup-node
- name: 'Install cbor2'
run: pip install cbor2
- name: 'Install crc32'
run: sudo apt install -y libarchive-zip-perl
- name: 'Install Dependencies'
run: |
pnpm install --frozen-lockfile
Expand All @@ -192,7 +188,7 @@ jobs:
- name: 'Install dfx'
uses: dfinity/setup-dfx@main
- name: 'Start PocketIC'
run: dfx start --clean --pocketic --host 127.0.0.1:4943 --background
run: dfx start --clean --system-canisters --host 127.0.0.1:4943 --background
- name: 'Perform local deployment'
run: ./orbit --init
- name: 'Test local deployment'
Expand All @@ -204,20 +200,14 @@ jobs:
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: 'Setup Python'
uses: actions/setup-python@v5
- name: 'Install cbor2'
run: pip install cbor2
- name: 'Install crc32'
run: sudo apt install -y libarchive-zip-perl
- name: 'Setup Node'
uses: ./.github/actions/setup-node
- name: 'Run sccache-cache'
uses: mozilla-actions/sccache-action@v0.0.8
- name: 'Install dfx'
uses: dfinity/setup-dfx@main
- name: 'Start local replica'
run: dfx start --clean --host 127.0.0.1:4943 --background
run: dfx start --clean --system-canisters --host 127.0.0.1:4943 --background
- name: 'Perform local deployment'
run: ./orbit --init
- name: 'Test local deployment'
Expand Down Expand Up @@ -245,7 +235,7 @@ jobs:
- name: 'Install dfx'
uses: dfinity/setup-dfx@main
- name: 'Start local replica'
run: dfx start --clean --pocketic --host 127.0.0.1:4943 --background
run: dfx start --clean --system-canisters --host 127.0.0.1:4943 --background
- name: 'Test prod deployment script'
run: |
echo y | ./scripts/deploy.sh --local # install
Expand Down
14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,13 @@ Please make sure you have the following installed:

### Building the Code

Start a local replica listening on port 4943:
Start PocketIC with system canisters (ICP ledger, ICP index, CMC, Internet Identity) listening on port 4943:

```
dfx start --clean --pocketic --host 127.0.0.1:4943
dfx start --clean --system-canisters --host 127.0.0.1:4943
```

Note that the local replica should be stopped using `dfx stop` rather than by CTRL^C.

If you want to resume your local replica after `dfx stop`, then you need to install the Python package `cbor2`,
have the binary `crc32` to compute CRC32 checksums on your executable path,
and use the following command for the first time:

```
dfx start --clean --host 127.0.0.1:4943
```
Note that PocketIC should be stopped using `dfx stop` rather than by CTRL^C.

Then the following steps can be used to setup the Orbit canister ecosystem for local development.

Expand Down
Loading
Loading