Skip to content

Commit

Permalink
Merge pull request #1 from MicrosoftDocs/base-code
Browse files Browse the repository at this point in the history
Base code
  • Loading branch information
jamesmontemagno authored Nov 3, 2023
2 parents 40fce7a + e61bddf commit 8e3d592
Show file tree
Hide file tree
Showing 283 changed files with 24,710 additions and 31 deletions.
13 changes: 13 additions & 0 deletions .devcontainer/dotnet-deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ARG VARIANT=bullseye
ARG VERSION=3.10
FROM --platform=amd64 mcr.microsoft.com/devcontainers/python:${VERSION}-${VARIANT}

# Copy the setup scripts
COPY library-scripts/*.sh /tmp/library-scripts/

RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y xdg-utils \
&& curl -fsSL https://aka.ms/install-azd.sh | bash \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
56 changes: 56 additions & 0 deletions .devcontainer/dotnet-deploy/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"name": "eShopLite",
"build": {
"dockerfile": "Dockerfile",
"args": {
"IMAGE": "dotnet:8.0"
}
},
"features": {
"ghcr.io/devcontainers/features/docker-from-docker:1": {
"version": "20.10"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "2"
},
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {},
"azure-cli": "2.53.0"
},
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.vscode-node-azure-pack",
"github.vscode-github-actions",
"GitHub.copilot-nightly",
"GitHub.vscode-github-actions",
"ms-dotnettools.vscode-dotnet-runtime",
"ms-dotnettools.csdevkit",
"ms-dotnetools.csharp"
]
}
},
"forwardPorts": [
32000,
32001
],
"onCreateCommand": "bash ${containerWorkspaceFolder}/.devcontainer/library-scripts/dotnet-install.sh --channel 8.0 -quality preview -installdir ${containerWorkspaceFolder}/.dotnet",
"postCreateCommand": "dotnet restore",
"remoteUser": "vscode",
"hostRequirements": {
"memory": "16gb",
"cpus": 4
},
"remoteEnv": {
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
"DOTNET_MULTILEVEL_LOOKUP": "0",
"TARGET": "net8.0"
},
"portsAttributes": {
"32001": {
"label": "Back End"
},
"32000": {
"label": "Front End"
}
}
}
Loading

0 comments on commit 8e3d592

Please sign in to comment.