From 922abe07f562d7242da50f2e4d02dc287415ad00 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Tue, 27 Jul 2021 16:51:06 +0000 Subject: [PATCH] build: update devcontainer for parachains --- --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -13,8 +13,8 @@ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \ nvm install v16.2.0 && \ npm install -g yarn && \ - rustup toolchain install nightly-2021-05-30 && \ - rustup default nightly-2021-05-30 && \ + rustup toolchain install nightly-2021-05-20 && \ + rustup default nightly-2021-05-20 && \ rustup target add wasm32-unknown-unknown && \ rustup component add rustfmt clippy && \ cargo install cargo-expand cargo-edit cargo-contract --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,9 +1,8 @@ { "name": "Rust", - "build": { - "dockerfile": "Dockerfile" - }, - "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], + "dockerComposeFile": "./docker-compose.yml", + "service": "nft_private", + "workspaceFolder": "/workspaces/nft_private", "settings": { "terminal.integrated.shell.linux": "/bin/bash", "lldb.executable": "/usr/bin/lldb", @@ -13,7 +12,8 @@ }, "extensions": [ "matklad.rust-analyzer", - "dbaeumer.vscode-eslint" + "dbaeumer.vscode-eslint", + "tamasfe.even-better-toml" ], "remoteUser": "vscode" } --- /dev/null +++ b/.devcontainer/docker-compose.yml @@ -0,0 +1,23 @@ +version: '3' +services: + nft_private: + build: + context: . + environment: + - JAEGER_AGENT_HOST=jaeger + - JAEGER_AGENT_PORT=6831 + volumes: + - ..:/workspaces/nft_private:cached + - ../../polkadot:/workspaces/polkadot:cached + - ../../polkadot-launch:/workspaces/polkadot-launch:cached + #- ../../frontier:/workspaces/frontier + cap_add: + - SYS_PTRACE + security_opt: + - seccomp:unconfined + command: /bin/sh -c "while sleep 1000; do :; done" + jaeger: + image: jaegertracing/all-in-one:latest + ports: + - "6831:6831/udp" + - "16686:16686" \ No newline at end of file -- gitstuff