Sign in

Mod for code-server

Golang

This mod adds golang/go to code-server and openvscode-server.

arch
amd64
version
1.27.4
built

Use it#

Set DOCKER_MODS on the code-server container and recreate it. The mod is pulled on every start; several mods are separated with |.

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:code-server-golang

:code-server-golang always gets the newest build. To stay on this one, version 1.27.4, pin its tag:

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:code-server-golang-1.27.4

The control plane checks the upstream version every hour and builds the mod when a new one is out; the scheduler shows the latest check.

services:
  code-server:
    image: ghcr.io/linuxserver-playground/code-server:latest
    environment:
      - DOCKER_MODS=ghcr.io/linuxserver-playground/mods:code-server-golang

Also for openvscode-server.

Versions#

Upstream ships several versions at once, and each line is built on its own. A line's floating tags follow its newest build; the pinned tag never moves.

LineVersionBuiltTags
default1.27.4
  • :code-server-golang
  • :code-server-golang-1
  • :code-server-golang-1.27
  • :code-server-golang-1.27.4pinned
previous1.26.11
  • :code-server-golang-1.26
  • :code-server-golang-1.26.11pinned
unstable1.27rc3
  • :code-server-golang-1.27rc3pinned

Details#

Available Image Tags

  • code-server-golang: installs the latest stable version
  • code-server-golang-X: installs the latest major X version
  • code-server-golang-X.Y: installs the latest minor X.Y version, for the two minor versions Go supports
  • code-server-golang-X.Y.Z: installs the specific X.Y.Z version
  • code-server-golang-X.YrcN: installs a release candidate of the next minor version

Examples

  • ghcr.io/linuxserver-playground/mods:code-server-golang installs the latest stable release
  • ghcr.io/linuxserver-playground/mods:code-server-golang-1 installs the latest 1 release
  • ghcr.io/linuxserver-playground/mods:code-server-golang-1.26 installs the latest 1.26 release, the previous minor version
  • ghcr.io/linuxserver-playground/mods:code-server-golang-1.27.3 installs the specific 1.27.3 release

Community project

Improve this mod, or make your own

Mods are how LinuxServer images grow without getting heavier: a Dockerfile, a few scripts and a mod.yml. If this one is missing something, or you need one like it for another image, an AI agent in our harness can build and test it with you.

Ask your agent

  • The code-server-golang mod <what is wrong>. Fix it, test it and draft the PR.
  • Make a mod like code-server-golang for <another image>, and test it.

Making a mod Every way to help Get the harness (opens in a new tab)

Source: code-server-golang branch (opens in a new tab). Every mod