-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a dev container for Soroban development
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} |