Skip to content

Commit eaf6e10

Browse files
Add base code and container
1 parent 1be5232 commit eaf6e10

Some content is hidden

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

54 files changed

+3286
-0
lines changed

.devcontainer/Dockerfile

+13
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

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"name": "eShopLite",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"args": {
6+
"IMAGE": "dotnet:8.0"
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+
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {},
17+
"azure-cli": "2.53.0"
18+
},
19+
"customizations": {
20+
"vscode": {
21+
"extensions": [
22+
"ms-vscode.vscode-node-azure-pack",
23+
"github.vscode-github-actions",
24+
"GitHub.copilot-nightly",
25+
"GitHub.vscode-github-actions",
26+
"ms-dotnettools.vscode-dotnet-runtime",
27+
"ms-dotnettools.csdevkit",
28+
"ms-dotnetools.csharp"
29+
]
30+
}
31+
},
32+
"forwardPorts": [
33+
32000,
34+
32001
35+
],
36+
"onCreateCommand": "bash ${containerWorkspaceFolder}/.devcontainer/library-scripts/dotnet-install.sh --channel 8.0 -quality preview -installdir ${containerWorkspaceFolder}/.dotnet",
37+
"postCreateCommand": "dotnet restore",
38+
"remoteUser": "vscode",
39+
"hostRequirements": {
40+
"memory": "16gb",
41+
"cpus": 4
42+
},
43+
"remoteEnv": {
44+
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
45+
"DOTNET_MULTILEVEL_LOOKUP": "0",
46+
"TARGET": "net8.0"
47+
},
48+
"portsAttributes": {
49+
"32001": {
50+
"label": "Back End"
51+
},
52+
"32000": {
53+
"label": "Front End"
54+
}
55+
}
56+
}

0 commit comments

Comments
 (0)