A docker container for Solana development, which already installed most essential tools for you.
Base image is ubuntu:22.04, and it installed:
( Default config is using Solana Devnet )
- Docker installed in your environment
- Checkout the code.
- (Optional) Run
./genWallet.sh
to generate wallet. - Run
./start.sh
to start the container. (It may take some time to build the first time. Be patient.) - Run
./shell.sh
to open Shell. - Done. Feel free to play with the environment!
P.S. When you wanna stop it, just run ./stop.sh
.
The workspace
dir is already mounted to the container's /workspace
dir. You can freely put anythings under this directory.
./start.sh
./stop.sh
./shell.sh
Only need to run this when the Dockerfile
template updated so you need to rebuild the image.
./build.sh
This script will generate new wallet and save private key in ./solana-config/id.json
. (Will not override file)
That's the default wallet inside the container.
./genWallet.sh
This project's ./solana-config
is the dir for putting solana config stuffs.
The ./solana-config/cli/config.yml
is mounted as /root/.config/solana/cli/config.yml
inside container, which is the config yml file.
The ./solana-config/id.json
is mounted as /root/.config/solana/id.json
inside container, which is the default Keypair path.