Cardano
$2.23 7.98%
ADA 1w

Docker container environment for testing/developing with Cardano tools/utilities, enjoy!

Cardano Docker Sandbox

A bare-bones sandbox for developing with Cardano tools/utilities. Includes latest code from Alonzo fork.

THIS IS ONLY A SANDBOX AND NOT MEANT FOR PRODUCTION USE

What's Included

Currently, only cardano-node and cardano-cli utilities are included. I plan on adding more Cardano utilities soon.

Dependencies

Docker 20.10.8+

How to Install and Run

Step 1:

git clone https://github.com/AustinOwens/cardano_sandbox.git

Step 2:

cd cardano_docker_sandbox

Step 3:

That's it!

How It Works

As the Docker container starts building, it will fetch the official Cardano source code that contain various tools/utilities for interacting and making transactions with the blockchain.

When the container starts, you will be thrown into the containers bash shell and a cardano node instance will automatically start syncing to the Testnet blockchain in the background (it can take a while to fully sync with the blockchain). The node instance redirects its output to a node.txt file. If you want to see the cardano node output, run the following command:

While still in the container, you can ran the Cardano utilities like you'd expect. For example:

cardano-cli query tip --testnet-magic 1097911063

Output:

{ "epoch": 155, "hash": "17d4d085a6e9f320c7c7f667528669ba2922c20cf96c2ad1f43d730bdaa7687b", "slot": 37008207, "block": 2903536, "era": "Alonzo", "syncProgress": "100.00" }

If you exit from the bash shell from within the container, the container will continue to run with the node instance still actively syncing with the blockchain.

From your host you can call helper scripts like this:

docker compose exec node /root/cardano-data/scripts/query_tip.sh

Output:

{ "epoch": 155, "hash": "17d4d085a6e9f320c7c7f667528669ba2922c20cf96c2ad1f43d730bdaa7687b", "slot": 37008207, "block": 2903536, "era": "Alonzo", "syncProgres...
Continue on github.com
Recent news
ADA +7.98% iohk.io 5h

Cardano Dapp store!

We鈥檒l unveil a new integrated approach at the Cardano Summit this weekend. Here鈥檚 a preview...
ADA +7.98% cityam.com 14h

Charles being a good human

Cardano founder Charles Hoskinson has handed $20m to Carnegie University to establish a new mathematics centre.
19
ADA +7.98% youtu.be 19h

Cardano's Secret Partners

We're only a few days away from the Cardano Summit 2021 and there are a few very interesting suspects for the "mindblowing" secret partnerships that will be ...
83