Anchor development environment package for Crostini / Chromebook and other Debian based OSs.
669
A Chromebook / Crostini and standard Debian-compatible development container for building and testing Solana smart contracts using Anchor. Uses podman, can work on docker.
Ensure that the following has an output:
sudo grep $(whoami) /etc/subuid /etc/subgid
If not, then perform the following before building or pulling the package:
echo "$(whoami):100000:65536" | sudo tee -a /etc/subuid | sudo tee -a /etc/subgid
podman system migrate
# From GHCR
podman pull ghcr.io/wyvernglobal/anchor-crostini:stable
# From DockerHub
podman pull josh56432/anchor-crostini:stable
git clone https://github.com/wyvernglobal/anchor-crostini.git
cd ./anchor-crostini
podman build -t anchor-crostini .
podman run -it --rm -v $PWD:/anchor-crostini -w /anchor-crostini --network host anchor-crostini bash
Or add an alias to ~/.bashrc or ~/.zshrc:
echo "alias anchor-crostini='podman run -it --rm -v \$PWD:/anchor-crostini -w /anchor-crostini --network host ghcr.io/wyvernglobal/anchor-crostini:latest bash'" >> ~/.bashrc
source ~/.bashrc
Then run with:
anchor-crostini
Licensed under the Apache License, Version 2.0.
See the LICENSE file or https://www.apache.org/licenses/LICENSE-2.0.
Content type
Image
Digest
sha256:093d619b1…
Size
1.2 GB
Last updated
about 1 year ago
docker pull josh56432/anchor-crostini