зеркало из https://github.com/microsoft/msquic.git
customize codespaces environment (#3367)
This commit is contained in:
Родитель
3723e63dba
Коммит
ebabb736ea
|
@ -0,0 +1,23 @@
|
|||
FROM ghcr.io/microsoft/msquic/linux-build-xcomp@sha256:6cf1ae79dd1951d117d932402ffd35bcbe416f98471e456694bb48ab625945d6
|
||||
|
||||
ARG username=test
|
||||
ARG useruid=1000
|
||||
ARG usergid=${useruid}
|
||||
|
||||
RUN wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
|
||||
&& dpkg -i packages-microsoft-prod.deb \
|
||||
&& rm packages-microsoft-prod.deb \
|
||||
&& apt-get update -y \
|
||||
&& apt-get install -y \
|
||||
# prepare-machine.ps1 needs dotnet
|
||||
dotnet-sdk-6.0 \
|
||||
# prep for perf command
|
||||
software-properties-common \
|
||||
# to connect from GitHub CLI
|
||||
openssh-server \
|
||||
&& groupadd --gid ${usergid} ${username} \
|
||||
&& useradd -s /bin/bash --uid ${useruid} --gid ${usergid} -m ${username} \
|
||||
&& echo ${username} ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/${username} \
|
||||
&& chmod 0440 /etc/sudoers.d/${username}
|
||||
|
||||
USER ${username}
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"dockerFile": "Dockerfile",
|
||||
"hostRequirements": {
|
||||
"cpus": 4,
|
||||
"memory": "2gb"
|
||||
},
|
||||
"onCreateCommand": "pwsh -c './scripts/prepare-machine.ps1 -ForOneBranch -InitSubmodules'",
|
||||
"runArgs": ["--init", "--privileged"]
|
||||
}
|
|
@ -508,8 +508,8 @@ if ($IsLinux) {
|
|||
}
|
||||
|
||||
if ($ForBuild) {
|
||||
sudo apt-add-repository ppa:lttng/stable-2.12
|
||||
sudo apt-get update
|
||||
sudo apt-add-repository ppa:lttng/stable-2.12 -y
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y cmake
|
||||
sudo apt-get install -y build-essential
|
||||
sudo apt-get install -y liblttng-ust-dev
|
||||
|
@ -529,8 +529,8 @@ if ($IsLinux) {
|
|||
}
|
||||
|
||||
if ($ForTest) {
|
||||
sudo apt-add-repository ppa:lttng/stable-2.12
|
||||
sudo apt-get update
|
||||
sudo apt-add-repository ppa:lttng/stable-2.12 -y
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y lttng-tools
|
||||
sudo apt-get install -y liblttng-ust-dev
|
||||
sudo apt-get install -y gdb
|
||||
|
|
Загрузка…
Ссылка в новой задаче