This repository contains the required files to build a functional development container for Okteto and Golang.
The following file shows an example configuration working for Okteto.
name: hello-world
image: insost/okteto-dev-golang:1.19
autocreate: true
workdir: /okteto
command: /bin/bash
volumes:
- /go/pkg/ # persist go dependencies
- /root/.cache/go-build/ # persist go build cache
- /root/.vscode-server # persist vscode extensions
securityContext:
capabilities:
add:
- SYS_PTRACE # required by the go debugger
forward:
- 8080:8080
persistentVolume:
enabled: true