Skip to content

Commit

Permalink
chore: change devcontainer version
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Sep 6, 2024
1 parent a08c709 commit eb811ce
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 39 deletions.
74 changes: 38 additions & 36 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,41 @@
{
"name": "zeiss/fiber-goth",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick an Ubuntu version: jammy / ubuntu-22.04, focal / ubuntu-20.04, bionic /ubuntu-18.04
// Use ubuntu-22.04 or ubuntu-18.04 on local arm64/Apple Silicon.
"args": {
"VARIANT": "ubuntu-22.04"
}
},
"runArgs": [
"--add-host=host.docker.internal:host-gateway"
],
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
"postCreateCommand": "bash scripts/postCreateCommand.sh",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/go:1": {},
},
"forwardPorts": [
3000
],
"customizations": {
"vscode": {
"extensions": [
"GitHub.copilot",
"GitHub.vscode-github-actions",
"golang.go",
"ms-vscode.makefile-tools"
]
}
},
"portsAttributes": {
"3000": {
"label": "Application",
"onAutoForward": "openPreview"
}
"name": "zeiss/fiber-goth",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick an Ubuntu version: jammy / ubuntu-22.04, focal / ubuntu-20.04, bionic /ubuntu-18.04
// Use ubuntu-22.04 or ubuntu-18.04 on local arm64/Apple Silicon.
"args": {
"VARIANT": "ubuntu-22.04"
}
},
"runArgs": [
"--add-host=host.docker.internal:host-gateway"
],
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
"postCreateCommand": "bash scripts/postCreateCommand.sh",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/go:1": {
"version": "1.22"
}
},
"forwardPorts": [
3000
],
"customizations": {
"vscode": {
"extensions": [
"GitHub.copilot",
"GitHub.vscode-github-actions",
"golang.go",
"ms-vscode.makefile-tools"
]
}
},
"portsAttributes": {
"3000": {
"label": "Application",
"onAutoForward": "openPreview"
}
}
}
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/zeiss/fiber-goth

go 1.22
go 1.22.1

toolchain go1.22.7

require (
github.com/gofiber/fiber/v2 v2.52.5
Expand Down
5 changes: 3 additions & 2 deletions tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module tools

go 1.22
toolchain go1.22.5
go 1.22.1

toolchain go1.22.7

require (
github.com/deepmap/oapi-codegen/v2 v2.2.0
Expand Down

0 comments on commit eb811ce

Please sign in to comment.