From 7bfb7bd21ea28a65da2fdb61aac4a9e954264cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=87=E9=81=87=E7=A7=91=E6=8A=80?= <69790869+QiYuTechDev@users.noreply.github.com> Date: Sat, 23 Jul 2022 08:54:28 +0000 Subject: [PATCH 1/2] add setup --- .devcontainer.json | 12 ++++++++++++ setup.sh | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 .devcontainer.json create mode 100755 setup.sh diff --git a/.devcontainer.json b/.devcontainer.json new file mode 100644 index 0000000..c56960e --- /dev/null +++ b/.devcontainer.json @@ -0,0 +1,12 @@ +{ + "customizations": { + "vscode": { + "extensions": [ + "bungcip.better-toml", + "ms-python.python", + "eamodio.gitlens", + "EditorConfig.EditorConfig" + ] + } + } +} \ No newline at end of file diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..fa08b8a --- /dev/null +++ b/setup.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e + +pip install poetry --user && poetry update + +sudo apt update +sudo apt install -y cargo +cargo install st-cli From 399a775ffe42e1000e4971f3bdd38174348e88ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=87=E9=81=87=E7=A7=91=E6=8A=80?= <69790869+QiYuTechDev@users.noreply.github.com> Date: Sat, 23 Jul 2022 09:14:05 +0000 Subject: [PATCH 2/2] update --- .devcontainer.json | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.devcontainer.json b/.devcontainer.json index c56960e..dae80a8 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -1,12 +1,16 @@ { - "customizations": { - "vscode": { - "extensions": [ - "bungcip.better-toml", - "ms-python.python", - "eamodio.gitlens", - "EditorConfig.EditorConfig" - ] - } + "postCreateCommand": "sh setup.sh", + "remoteEnv": { + "PATH": "${containerEnv:PATH}:/home/codespace/.cargo/bin" + }, + "customizations": { + "vscode": { + "extensions": [ + "bungcip.better-toml", + "ms-python.python", + "eamodio.gitlens", + "EditorConfig.EditorConfig" + ] } -} \ No newline at end of file + } +}