Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
9223413
added baseline C# functions devcontainer config. #124
davidwesst Dec 22, 2021
5f703dd
added some extensions and tool installs. #124
davidwesst Dec 22, 2021
c97539d
added node, docker, and dotnet-install sdk scripts. #124
davidwesst Dec 22, 2021
02bb554
added missing comma
davidwesst Dec 22, 2021
d8af5ea
installing .net 5 and 6 sdks in dockerfile. #124
davidwesst Dec 22, 2021
c214814
added vnc desktop testing and first-build script to confirm environme…
davidwesst Dec 22, 2021
e9811d8
added azurite to first-build script for setup
davidwesst Dec 22, 2021
9cbfb6c
finished adding scripts for cosmosdb emulator and database setup. #124
davidwesst Dec 22, 2021
caa7439
minor fixes and removed github feature for now. #124
davidwesst Dec 22, 2021
7ffe76e
adding config files on first build. #124
davidwesst Jan 7, 2022
c7c942d
fixed typo
davidwesst Jan 10, 2022
bd12b94
refreshed start-stop script and VSCode tasks for managing CosmosDB em…
davidwesst Jan 18, 2022
9664019
added gh cli
davidwesst Jan 18, 2022
fd3a102
added task for vscode for cosmosdb
davidwesst Jan 18, 2022
1562edf
added tasks and settings to run azure function vscode extension
davidwesst Jan 18, 2022
def16c5
minor update to gitignore and linux compatible run command
davidwesst Jan 20, 2022
4b94fcf
reverted npm script command back to windows style
davidwesst Jan 24, 2022
d12d2a9
Added labels to tasks.json
davidwesst Jan 24, 2022
f5baf53
increased sleep time to give cosmosdb more time to startup
davidwesst Jan 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Find the Dockerfile for mcr.microsoft.com/azure-functions/dotnet:3.0-dotnet3-core-tools at this URL
# https://github.com/Azure/azure-functions-docker/blob/main/host/3.0/buster/amd64/dotnet/dotnet-core-tools.Dockerfile
FROM mcr.microsoft.com/azure-functions/dotnet:3.0-dotnet3-core-tools

# Uncomment following lines If you want to enable Development Container Script
# For more details https://github.com/microsoft/vscode-dev-containers/tree/main/script-library

# Avoid warnings by switching to noninteractive
# ENV DEBIAN_FRONTEND=noninteractive

# # Comment out these lines if you want to use zsh.

ARG INSTALL_ZSH=false
ARG USERNAME=vscode
ARG USER_UID=1000
ARG USER_GID=$USER_UID

RUN apt-get update && curl -ssL https://raw.githubusercontent.com/microsoft/vscode-dev-containers/main/script-library/common-debian.sh -o /tmp/common-script.sh \
&& /bin/bash /tmp/common-script.sh "$INSTALL_ZSH" "$USERNAME" "$USER_UID" "$USER_GID" \
&& rm /tmp/common-script.sh

# Setup .NET 5 & 6 SDKs
RUN wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
RUN dpkg -i packages-microsoft-prod.deb
RUN rm packages-microsoft-prod.deb
RUN apt-get update \
&& apt-get install -y apt-transport-https \
&& apt-get update \
&& apt-get install -y dotnet-sdk-5.0 \
&& apt-get install -y dotnet-sdk-6.0

# Install Chrome for Desktop Testing through VNC
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& curl -sSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /tmp/chrome.deb \
&& apt-get -y install /tmp/chrome.deb
42 changes: 42 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/azure-functions-dotnetcore-3.1
{
"name": "TwoWeeksReady",
"dockerFile": "Dockerfile",
"forwardPorts": [ 7071, 6080, 5901 ],

// Set *default* container specific settings.json values on container create.
"settings": {},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-azuretools.vscode-azurefunctions",
"ms-dotnettools.csharp",
"azurite.azurite",
//"ms-azuretools.vscode-cosmosdb"
// unable to get preview extension working through devcontainer emulator due to certificate error, but works with deprecated feature in Azure Storage Explorer
],

"features": {
"docker-in-docker": {
"version": "latest",
"moby": true
},
"node": {
"version": "lts",
"nodeGypDependencies": true
},
"desktop-lite": {
"password": "vscode",
"webPort": "6080",
"vncPort": "5901"
},
"github-cli": "latest"
},

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "bash -i tools/first-build.sh",

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
Loading