-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added devcontainer for spec writers (#24622)
* Added devcontainer for spec authors * Adding dockerfile * Adding comment * Adding convenient usage and conventions of the sdk repo path
- Loading branch information
Showing
3 changed files
with
106 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM mcr.microsoft.com/mirror/docker/library/ubuntu:22.04 | ||
|
||
RUN apt-get -y update && apt upgrade -y && apt install curl -y | ||
RUN apt-get -y install git | ||
|
||
# install node and npm | ||
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - | ||
RUN apt -y install nodejs | ||
RUN npm install -g npm@9.5.0 | ||
|
||
# install oav tool | ||
RUN npm install -g oav@latest | ||
|
||
# install powershell | ||
RUN apt-get update && apt-get install -y wget | ||
RUN wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | ||
RUN dpkg -i packages-microsoft-prod.deb | ||
RUN apt-get update | ||
RUN apt-get install -y powershell | ||
|
||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "TypeSpec Dev Container", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"remoteUser": "root" | ||
/*, | ||
update below source folder to your local sdk-repos folder | ||
"mounts": [ | ||
"source=/home/rc/repos/tmp/sdk-repos,target=/workspaces/sdk-repos,type=bind,consistency=cached" | ||
]*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters