Examples
LocalNet​
For LocalNet, first add canton-open-source to components (for example canton-open-source:3.5.17) and run dpm install package.
Start the sandbox in a separate terminal:
dpm sandbox --ledger-api-port 5001 --admin-api-port 5002 --json-api-port 7575
Then, from the project root:
dpm canton-deploy init
dpm canton-deploy status --network localnet
dpm canton-deploy deploy --network localnet
dpm canton-deploy contracts --network localnet
CI with Pre-Built DARs​
Pin the component by digest in CI so every run installs the same image:
components:
- damlc:3.5.2
- daml-script:3.5.2
- oci://ghcr.io/lync-world/canton-deploy:0.1.1@sha256:e539876853ed05147d4937db2c66ea4cde9e90a9070451758d4e190f98223913
Then:
dpm install package
dpm build
dpm canton-deploy deploy --skip-build --network localnet --log-file deploy.log
DevNet with a JWT​
Set the JWT:
export DEVNET_JWT_TOKEN='eyJ...'
Check connectivity:
dpm canton-deploy status --network devnet
Deploy:
dpm canton-deploy deploy --network devnet
Inspect packages:
dpm canton-deploy packages --network devnet