Skip to content

Commit

Permalink
Merge pull request #69 from freespek/th/rust-devcontainer
Browse files Browse the repository at this point in the history
Fix devcontainer
  • Loading branch information
thpani authored May 21, 2024
2 parents 36709f0 + bcb7702 commit eec8ee4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 21 deletions.
9 changes: 9 additions & 0 deletions ContractExamples/.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@=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
40 changes: 19 additions & 21 deletions ContractExamples/.devcontainer/devcontainer.json
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
}
}
}
}

0 comments on commit eec8ee4

Please sign in to comment.