-
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.
Merge pull request #69 from freespek/th/rust-devcontainer
Fix devcontainer
- Loading branch information
Showing
2 changed files
with
28 additions
and
21 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@=21.0.0-preview.1 | ||
RUN rustup target add wasm32-unknown-unknown | ||
|
||
# The following should be run at a project level: | ||
# soroban config network add testnet --rpc-url https://soroban-testnet.stellar.org:443 --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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
// A dev container for working with Soroban smart contracts. | ||
// For format details, see https://aka.ms/devcontainer.json. | ||
{ | ||
"name": "Soroban", | ||
"image": "mcr.microsoft.com/devcontainers/rust:latest", | ||
"features": { | ||
"ghcr.io/lee-orr/rusty-dev-containers/wasm32-unknown-unknown:0": {}, | ||
"ghcr.io/lee-orr/rusty-dev-containers/cargo-binstall:0": { | ||
"packages": "soroban-cli" | ||
}, | ||
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"vscodevim.vim" | ||
], | ||
"settings": { | ||
"extensions.ignoreRecommendations": true, // don't show recommendations for extensions | ||
"terminal.integrated.copyOnSelection": true | ||
} | ||
} | ||
} | ||
} | ||
"name": "Soroban", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"features": { | ||
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"vscodevim.vim" | ||
], | ||
"settings": { | ||
"extensions.ignoreRecommendations": true, // don't show recommendations for extensions | ||
"terminal.integrated.copyOnSelection": true | ||
} | ||
} | ||
} | ||
} |