This development container aims to provide a turn-key development environment for auditors working with CosmWasm smart contracts. This container comes pre-configured with all the tools, libraries, and configurations required to perform security audits effectively and efficiently.
- Rust Environment: Pre-configured with Rust, Cargo, and other Rust auditing tools.
- Security Tools: Includes commonly-used security tools for smart contract auditing.
- Scripting Support: Ready-to-use scripts for common auditing tasks. (In progress)
-
Clone the Repository
git clone https://github.com/your-username/CosmWasm-auditors-devcontainer.git
-
Navigate to the Project Folder
cd CosmWasm-auditors-devcontainer
-
Copy devcontainer.json into audit repo
cp -r path/to/CosmWasm-auditors-devcontainer/.devcontainer /path/to/auditing-repo/
-
Open in Dev Container
Open code and a popup will appear asking if you want to reopen the project in a Dev Container. Click "Reopen in Container".
Alternatively, use
F1
to open the Command Palette and run "Remote-Containers: Reopen in Container".
-
Navigate to the folder containing the
Dockerfile
for the base imagecd /path/to/.devcontainer/
-
Build the Base Image
docker build -t your-base-image-name .
or if using Podman,
podman build -t your-base-image-name .
-
Manually Attach to the Container in VS Code
-
CTRL+SHIFT+P - Remote-Containers: Attach to Running Container
-
You have now manually attached to the container, keep in mind this ignores the devcontainer config
- I recommend configuring a rootless podman configuration.
- For issues, refer to VS Code Remote - Containers troubleshooting guide or create an issue.