From 0668503fb355ebf219a93e2eeabd071b159f28ab Mon Sep 17 00:00:00 2001 From: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com> Date: Thu, 17 Mar 2022 21:19:01 +0000 Subject: [PATCH] More setup --- .devcontainer/devcontainer.json | 5 +++-- .devcontainer/init.sh | 13 +++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .devcontainer/init.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 72201639952..4870222d3fa 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -21,11 +21,12 @@ // Add the IDs of extensions you want installed when the container is created. "extensions": [ "GitHub.vscode-pull-request-github", - "ms-dotnettools.csharp" + "ms-dotnettools.csharp", + "eamodio.gitlens" ], // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - "postCreateCommand": "echo 'Creating symlink for embedded sdk...' && ln -s /home/codespace/.dotnet/sdk/ _dotnetsdk && echo .6.0.100 >> _dotnetsdk/6.0.100/.6.0.100 && ln -s /home/codespace/.dotnet/dotnet _dotnetsdk/6.0.100/dotnet" + "postCreateCommand": "bash .devcontainer/init.sh" } diff --git a/.devcontainer/init.sh b/.devcontainer/init.sh new file mode 100644 index 00000000000..ddffd537f37 --- /dev/null +++ b/.devcontainer/init.sh @@ -0,0 +1,13 @@ +### Create _dotnetsdk +echo 'Creating symlink for embedded sdk...' +ln -s /home/codespace/.dotnet/sdk/ _dotnetsdk +echo .6.0.100 >> _dotnetsdk/6.0.100/.6.0.100 +ln -s /home/codespace/.dotnet/dotnet _dotnetsdk/6.0.100/dotnet + +### Restore +dotnet restore src/Runner.Listener & +dotnet restore src/Runner.Common & +dotnet restore src/Runner.Sdk & +dotnet restore src/Runner.Worker & +dotnet restore src/Runner.Service & +dotnet restore src/Test &