Sign inSign up

pylejeune/solana-dev

By pylejeune

•Updated over 1 year ago

Solana and Anchor, including all necessary tools pre-installed.

Image
Languages & frameworks
Developer tools
0

2.9K

pylejeune/solana-dev repository overview

⁠Solana/Anchor Development Environment

Ubuntu-based image with Rust, Solana, Anchor, Node.js and related tools for blockchain development

⁠📌 Overview

This Docker image provides a ready-to-use development environment for Solana blockchain projects using:

  • Rust (stable toolchain with rustfmt and clippy)
  • Solana CLI (latest stable version)
  • Anchor Framework (v0.30.1 via AVM)
  • Node.js LTS (via NVM) + Yarn
  • Essential build tools (git, curl, wget, libssl-dev, cmake, etc.)

Optimized for fast builds using multi-stage Docker layers.


⁠🏷️ Image Details

LabelValue
Base Imageubuntu:latest (amd64)
Rust VersionStable (minimal profile)
Solana VersionLatest stable (via Anza installer)
Anchor Version0.30.1 (via AVM)
Node.js VersionLTS (managed via NVM)
Default Userdeveloper (non-root, sudo-enabled)
Working Directory/app

⁠⚙️ Included Tools & Dependencies

⁠1. System Dependencies
  • build-essential, pkg-config, libssl-dev, libudev-dev
  • git, curl, wget, python3, cmake
⁠2. Rust Ecosystem
  • rustup (stable toolchain)
  • rustfmt, clippy, wasm32-unknown-unknown target
⁠3. JavaScript/Node.js
  • NVM (Node Version Manager)
  • Node.js LTS + Yarn (global)
⁠4. Solana Stack
  • Solana CLI (via Anza installer)
  • Anchor CLI (via AVM, version 0.30.1)

⁠🚀 Usage

⁠Pull the Image
docker pull pylejeune/solana-dev:latest
⁠Run the Container
docker run -it --rm \
  -v $(pwd):/app \
  -p 8899:8899 \  # Optional: For Solana localnet
  -v ~/.config/solana/id.json:/home/developer/.config/solana/id.json \ # For your path local private key
  pylejeune/solana-dev
⁠Verify Installations
# Inside the container:
rustc --version
solana --version
anchor --version
node --version

⁠📂 File Structure

/home/developer/
  ├── .cargo/       # Rust toolchain
  ├── .nvm/         # Node.js versions
  ├── .avm/         # Anchor versions
  ├── .local/share/solana/  # Solana binaries
/app                # Default working directory

⁠🔧 Customization

  • Switch Node.js version:
    nvm install <version> && nvm use <version>
    
  • Switch Anchor version:
    avm install <version> && avm use <version>
    

⁠📜 License

MIT (see GitHub⁠)


⁠📮 Support


⁠🎯 Ideal For
  • Solana smart contract development
  • Anchor framework projects
  • CI/CD pipelines for blockchain apps

Tag summary

Content type

Image

Digest

sha256:fc8fdda32…

Size

1.2 GB

Last updated

over 1 year ago

docker pull pylejeune/solana-dev