Skip to content

Commit

Permalink
Add a dev container for Soroban development
Browse files Browse the repository at this point in the history
  • Loading branch information
thpani committed Apr 15, 2024
1 parent 693dfec commit 0ba7bf9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM mcr.microsoft.com/devcontainers/rust:latest

USER vscode
RUN cargo install --locked soroban-cli
RUN rustup target add wasm32-unknown-unknown

# The following should be run at a project level:
# soroban config network add testnet --rpc-url "http://host.docker.internal:8000/soroban/rpc" --network-passphrase "Test SDF Network ; September 2015"
# soroban keys generate alice --network testnet
23 changes: 23 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
{
"name": "Soroban",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {},
},
"customizations": {
"vscode": {
"extensions": [
"rust-lang.rust-analyzer",
"vscodevim.vim"
],
"settings": {
"extensions.ignoreRecommendations": true, // don't show recommendations for extensions
"terminal.integrated.copyOnSelection": true
}
}
}
}

0 comments on commit 0ba7bf9

Please sign in to comment.