Skip to content

INSRapperswil/okteto-dev-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Okteto Golang Dev Container

Build

This repository contains the required files to build a functional development container for Okteto and Golang.


Example

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