Skip to content

Commit bfcd725

Browse files
committed
initial creation
0 parents  commit bfcd725

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+3914
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ARG VARIANT=bullseye
2+
ARG VERSION=3.10
3+
FROM --platform=amd64 mcr.microsoft.com/devcontainers/python:${VERSION}-${VARIANT}
4+
5+
# Copy the setup scripts
6+
COPY library-scripts/*.sh /tmp/library-scripts/
7+
8+
RUN export DEBIAN_FRONTEND=noninteractive \
9+
&& apt-get update \
10+
&& apt-get install -y xdg-utils \
11+
&& curl -fsSL https://aka.ms/install-azd.sh | bash \
12+
&& apt-get clean -y \
13+
&& rm -rf /var/lib/apt/lists/*

.devcontainer/devcontainer.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"name": ".NET in Codespaces",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"args": {
6+
"IMAGE": "dotnet:8.0-preview"
7+
}
8+
},
9+
"features": {
10+
"ghcr.io/devcontainers/features/docker-from-docker:1": {
11+
"version": "20.10"
12+
},
13+
"ghcr.io/devcontainers/features/github-cli:1": {
14+
"version": "2"
15+
}
16+
},
17+
"customizations": {
18+
"vscode": {
19+
"extensions": [
20+
"ms-vscode.vscode-node-azure-pack",
21+
"github.vscode-github-actions",
22+
"GitHub.copilot-nightly",
23+
"GitHub.vscode-github-actions",
24+
"ms-dotnettools.vscode-dotnet-runtime",
25+
"ms-dotnetools.csharp",
26+
"ms-dotnettools.csdevkit"
27+
]
28+
}
29+
},
30+
"forwardPorts": [
31+
8080,
32+
8081
33+
],
34+
"onCreateCommand": "bash ${containerWorkspaceFolder}/.devcontainer/library-scripts/dotnet-install.sh --channel 8.0 -quality preview -installdir ${containerWorkspaceFolder}/.dotnet",
35+
"postCreateCommand": "dotnet restore",
36+
"remoteUser": "vscode",
37+
"hostRequirements": {
38+
"memory": "8gb",
39+
"cpus": 4
40+
},
41+
"remoteEnv": {
42+
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
43+
"DOTNET_MULTILEVEL_LOOKUP": "0",
44+
"TARGET": "net8.0"
45+
},
46+
"portsAttributes": {
47+
"8080": {
48+
"label": "Weather API"
49+
},
50+
"8081": {
51+
"label": "Weather Front End"
52+
}
53+
}
54+
}

0 commit comments

Comments
 (0)