aleeusgr / gimbalabs-dandelion-pbl

Test Driven Development of dApps on Cardano
MIT License
1 stars 1 forks source link

write GitHub actions for node and cli? #1

Closed aleeusgr closed 1 year ago

aleeusgr commented 1 year ago

Api-test

How do I know my node works fine? cardano-cli query tip --testnet-magic 1;

shell scripting

On my system, NixOS, I have a blocker to run cadano-node and cardano-cli I need to either find a way to run it, or go without it.

aleeusgr commented 1 year ago

Nix

https://github.com/aleeusgr/nix-things/issues/10

aleeusgr commented 1 year ago

https://github.com/input-output-hk/cardano-node/blob/master/doc/getting-started/building-the-node-using-nix.md

nix build .#mainnet/node -o mainnet-node-local

I don't need main net, where do I find the options?

aleeusgr commented 1 year ago

https://docs.cardano.org/development-guidelines/installing-the-cardano-node buck that, I can use docker

Update on docker:

# create-keys.sh
dir="/home/alex"                                                                                             [0/34]
  1 
  2 source export-cli.sh
  3 $CLI address key-gen \
  4 --verification-key-file $dir/payment1.vkey \
  5 --signing-key-file $dir/payment1.skey

Command failed: address key-gen Error: /home/alex/payment1.skey: /home/alex/payment1.skey: openBinaryFile: does not exist (No such file or directory)

aleeusgr commented 1 year ago
dir=/home/alex/workshop/node-cli                                                                             [0/50]
  1 
  2 source export-cli.sh
  3 $CLI address key-gen \
  4 --verification-key-file $dir/payment1.vkey \
  5 --signing-key-file $dir/payment1.skey

. create-keys.sh Command failed: address key-gen Error: /home/alex/workshop/node-cli/payment1.skey: /home/alex/workshop/node-cli/payment1.skey: openBinaryFile: does not exist (No such file or directory)

https://forums.docker.com/t/how-to-redirect-command-output-from-docker-container/49758

aleeusgr commented 1 year ago

Improve UX test

At the moment I can run the node like so:

  1 source node-path.sh
  2 $path/cardano-node run \
  3 --topology $path/configuration/preprod/topology.json \
  4 --database-path $path/preprod/db \
  5 --socket-path $path/preprod/db/node.socket \
  6 --host-addr 0.0.0.0 \
  7 --port 3001 \
  8 --config $path/configuration/preprod/config.json

and test is with

source socket-path.sh 
../cardano-cli query tip --testnet-magic 1