Skip to content
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
1 change: 1 addition & 0 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
with:
filters: |
azure-functions-dotnet: ./**/azure-functions-dotnet/**
azure-functions-go: ./**/azure-functions-go/**
azure-functions-java: ./**/azure-functions-java/**
azure-functions-node: ./**/azure-functions-node/**
azure-functions-powershell: ./**/azure-functions-powershell/**
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ A collection of [Dev Container Templates](https://containers.dev/implementors/te
| Template | Languages / Runtimes | Supported Versions |
| --- | --- | --- |
| [Azure Functions (.NET)](./src/azure-functions-dotnet) | C#, .NET | 8.0 / 9.0 / 10.0 |
| [Azure Functions (Go)](./src/azure-functions-go) | Go | 1.24 / 1.25 / 1.26 |
| [Azure Functions (Java)](./src/azure-functions-java) | Java | 8 / 11 / 17 / 21 / 25 |
| [Azure Functions (Node.js)](./src/azure-functions-node) | JavaScript, TypeScript | 20 / 22 / 24 |
| [Azure Functions (PowerShell)](./src/azure-functions-powershell) | PowerShell | 7.4 / 7.6 |
Expand Down
1 change: 1 addition & 0 deletions src/azure-functions-go/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM mcr.microsoft.com/devcontainers/base:noble
31 changes: 31 additions & 0 deletions src/azure-functions-go/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "Azure Functions (Go)",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"forwardPorts": [
7071,
10000,
10001,
10002
],
"otherPortsAttributes": {
"onAutoForward": "ignore"
},
"features": {
"ghcr.io/devcontainers/features/go:1": {
"version": "${templateOption:goVersion}"
},
"ghcr.io/jlaundry/devcontainer-features/azure-functions-core-tools:1": {
"version": "${templateOption:azureFunctionsCliVersion}"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-azurefunctions",
"golang.go"
]
}
}
}
13 changes: 13 additions & 0 deletions src/azure-functions-go/.devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- ../..:/workspaces:cached
command: sleep infinity
network_mode: service:azurite

azurite:
image: mcr.microsoft.com/azure-storage/azurite
restart: unless-stopped
12 changes: 12 additions & 0 deletions src/azure-functions-go/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
37 changes: 37 additions & 0 deletions src/azure-functions-go/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"id": "azure-functions-go",
"version": "1.0.0",
"name": "Azure Functions (Go)",
"description": "Develop Go based Azure Functions. Includes all needed SDKs, extensions, and dependencies.",
"documentationURL": "https://github.com/shibayan/devcontainers/tree/master/src/azure-functions-go",
"publisher": "shibayan",
"licenseURL": "https://github.com/shibayan/devcontainers/blob/master/LICENSE",
"options": {
"goVersion": {
"type": "string",
"description": "Go version:",
"proposals": [
"1.26",
"1.25",
"1.24"
],
"default": "1.24"
},
"azureFunctionsCliVersion": {
"type": "string",
"description": "Azure Functions CLI version:",
"proposals": [
"latest",
"4.12.0"
],
"default": "latest"
}
},
"platforms": [
"Azure Functions",
"Go"
],
"optionalPaths": [
".github/*"
]
}
5 changes: 5 additions & 0 deletions test/azure-functions-go/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -e

cd "$(dirname "$0")"
bash run-template-checks.sh "go" go version