зеркало из https://github.com/Azure/benchpress.git
Dev Container: Add a post create shell script for post-creation actions (#12)
* A post-create script that gets executed when the container first launches * Post create shell script Co-authored-by: Uffaz <uffaz@Uffazs-MacBook-Pro.local>
This commit is contained in:
Родитель
29925e8d06
Коммит
25e107cd93
|
@ -1,3 +1,7 @@
|
|||
# [Choice] .NET version: 6.0, 5.0, 3.1, 6.0-bullseye, 5.0-bullseye, 3.1-bullseye, 6.0-focal, 5.0-focal, 3.1-focal
|
||||
ARG VARIANT="6.0"
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:${VARIANT}
|
||||
|
||||
COPY ./scripts/post-create.sh /benchpress/
|
||||
RUN chmod +x /benchpress/post-create.sh
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
// 1. Mega Linter
|
||||
// 2. Pester
|
||||
// 3. Configures benchpress Python module
|
||||
"postCreateCommand": "npm install -g mega-linter-runner && pwsh -command Install-Module -Name Pester -Force -SkipPublisherCheck && pip install --editable ./framework/python/",
|
||||
"postCreateCommand": "/benchpress/post-create.sh",
|
||||
|
||||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||
"remoteUser": "vscode",
|
||||
|
@ -85,3 +85,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Install Mega Linter
|
||||
npm install -g mega-linter-runner
|
||||
|
||||
# Install Pester
|
||||
pwsh -command Install-Module -Name Pester -Force -SkipPublisherCheck
|
||||
|
||||
# Configures benchpress Python module
|
||||
pip install --editable ./framework/python/
|
Загрузка…
Ссылка в новой задаче