Skip to content

chore: add devcontainer #522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
41 changes: 41 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
"name": "Python, .NET, Azure Functions, and Node.js",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/vscode/devcontainers/python:3.8",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "8.0"
},
"ghcr.io/jlaundry/devcontainer-features/azure-functions-core-tools:1": {
"version": "4"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "lts"
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "./.devcontainer/setup.sh",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"GitHub.copilot",
"ms-python.python",
"ms-azuretools.vscode-azurestorage",
"njpwerner.autodocstring"
]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
5 changes: 5 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

pip install -r requirements.txt


3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,6 @@ appsettings.*.json
/samples/python_durable_bindings/bin/
/samples/python_durable_bindings/.vs/
/samples/python_durable_bindings/obj/

# azurite emulator
__azurite_db_*.json
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ Thank you for taking the time to contribute to Durable Functions in [Python](htt

## Pre-requisites

> Alternatively you can use a dev container or [open in GitHub Codespaces](https://codespaces.new/Azure/azure-functions-durable-python).

- OS
- MacOS (or) Windows10 Ubuntu WSL
- Language Runtimes
- .NET Core 2.0
- \>= Python 3.6.x
- \>= Python 3.6.x

Note: Some ML libraries may not be compatible with newer Python versions. Make sure the library is compatible with the Python version.

Expand All @@ -35,7 +37,7 @@ Note: Some ML libraries may not be compatible with newer Python versions. Make s
- [Azure Storage Emulator](https://docs.microsoft.com/en-us/azure/storage/common/storage-use-emulator) (or) [Create a storage account in Azure](https://docs.microsoft.com/en-us/azure/storage/common/storage-account-create?tabs=azure-portal)
- [Azure Functions Core Tools](https://github.com/Azure/azure-functions-core-tools) v2.7.x and above.
- [Azure Storage Explorer](https://azure.microsoft.com/en-us/features/storage-explorer/)


## Pull Request Change flow

Expand Down
Loading