Sign inSign up

solodolobolo/code-server

By solodolobolo

Updated 5 days ago

Image
0

2.7K

solodolobolo/code-server repository overview

Custom code-server Build

A custom container based on LinuxServer.io featuring code-server with integrated Docker CLI and Node.js development environments. For more information, please refer to the official linuxserver/code-server repository.

Custom Features

This build incorporates the following modifications to the standard environment:

  • Docker CLI: Installed for container orchestration (requires socket mount).
  • Node.js LTS: Integrated Node.js environment with npm@latest.
  • Passwordless Sudo: The abc user is granted NOPASSWD rights for development flexibility.

Supported Architectures

ArchitectureAvailableTag
x86-64amd64
arm64arm64

Application Setup

Access the webui at http://<your-ip>:8443.

Docker CLI Usage

To use Docker commands within the code-server terminal, you must mount the host Docker socket: -v /var/run/docker.sock:/var/run/docker.sock

Note: The container currently requires sudo to run Docker commands on the host.

User Configuration

For github integration, drop your ssh key in to /config/.ssh. Set your git identity:

git config --global user.name "username"
git config --global user.email "email address"

Usage

docker-compose
---
services:
  code-server:
    image: solodolobolo/code-server:latest
    container_name: code-server
    environment:
      - PUID=${PUID:-1000}
      - PGID=${PGID:-1000}
      - TZ=Etc/UTC
      - PASSWORD=${PASSWORD:-webui_password}
      - SUDO_PASSWORD=${SUDO_PASSWORD}
      - DEFAULT_WORKSPACE=/config/workspace
    volumes:
      - /path/to/config:/config
      - /var/run/docker.sock:/var/run/docker.sock #optional
    ports:
      - 8443:8443
    restart: unless-stopped

docker cli
docker run -d \
  --name=code-server \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Etc/UTC \
  -e PASSWORD=password \
  -p 8443:8443 \
  -v /path/to/config:/config \
  -v /var/run/docker.sock:/var/run/docker.sock \
  --restart unless-stopped \
  custom-code-server:latest

Parameters

ParameterFunction
-p 8443:8443Web GUI port
-v /configPersistent configuration
-v /var/run/docker.sock:/var/run/docker.sockHost Docker socket for CLI access
-e PUID=1000UserID for file permissions
-e PGID=1000GroupID for file permissions
-e TZ=Etc/UTCContainer timezone
-e PASSWORD=Web GUI access password

Tag summary

Content type

Image

Digest

sha256:3c2870693

Size

551 MB

Last updated

5 days ago

docker pull solodolobolo/code-server