Go Build Environment on Linux - Mark-Millard/oktopus GitHub Wiki
This page describes how to set up the vscode IDE for programming in the Go language. These instructions are for the Ubuntu 22.04 LTS 64-bit host development platform.
Install Visual Studio Code (VSCode)
Use the instructions found on Visual Studio Code on Linux website.
Install Go
To install the Go programming language tools on Linux, use
sudo apt-get update && sudo apt-get -y install golang-go
To test the Go installation, use
go version
[!Note] Vscode extensions for Go on Ubuntu 22.04 LTS requires Go version 1.21 or higher. To install a different version of Go use "wget https://go.dev/dl/go1.21.4.linux-amd64.tar.gz -O go.tar.gz".
All releases of Go can be found at Go Download website.
Be sure to add the new version of Go to your PATH.
sudo tar -xzvf go.tar.gz -C $HOME/bin; echo export PATH=$HOME/go/bin:$PATH >> ~/.profile
Install VSCode Go Language Extension
You will need to install the VSCode language extension for Go. See below
Oktopus Go Projects
The following projects are part of the Oktopus eco-system:
- Controller Docker Application - oktopus/backend/services/controller
- File Server Docker Application - oktopus/backend/services/utils/file-server
- MTP STOMP - oktopus/backend/services/mtp/stomp
- MTP STOMP Adapter - oktopus/backend/services/mtp/stomp-adapter
- MTP MQTT - oktopus/backend/services/mtp/mqtt
- MTP MQTT Adapter - oktopus/backend/services/mtp/mqtt-adapter
- MTP WS - oktopus/backend/services/mtp/ws
- MTP WS Adapter - oktopus/backend/services/mtp/ws-adapter
- Abstract Adapter - oktopus/backend/services/mtp
- ACS Server - oktopus/backend/services/acs
Controller Development
Information on the development of the Oktopus Controller can be found at the Controller Development wiki.