Sign inSign up

navdeepkhaira/code-server

By navdeepkhaira

Updated about 2 months ago

Image
0

367

navdeepkhaira/code-server repository overview

Ubuntu Code-Server with DevOps Tools

A complete development environment based on Ubuntu 22.04 featuring code-server (VS Code in the browser) with essential DevOps and security scanning tools pre-installed.

🚀 What's Included

  • Ubuntu 22.04 LTS - Stable and secure base image
  • Code-Server - VS Code running in your browser, accessible from anywhere
  • PowerShell Core - Cross-platform PowerShell for automation and scripting
  • Vim/Vi Editor - Classic terminal-based text editor
  • Pipx - Isolated Python application installer
  • Checkov - Infrastructure as Code (IaC) security scanner for Terraform, CloudFormation, and more
  • Git - Version control system
  • Python 3 - Programming language with pip and venv support

🏃 Quick Start

# Pull and run the container
docker run -d -p 8087:8087 --name my-devenv navdeepkhaira/code-server:tagname

# Access code-server in your browser
# Navigate to: http://localhost:8087

📋 Usage Examples

Basic Development Environment
docker run -d -p 8087:8087 --restart unless-stopped --name devenv navdeepkhaira/code-server:tagname
With Persistent Workspace
docker run -d \
  -p 8087:8087 \
  -v /path/to/your/workspace:/root/workspace \
  --restart unless-stopped \
  --name devenv \
  navdeepkhaira/code-server:tagname
With Custom Configuration
docker run -d \
  -p 8087:8087 \
  -v /path/to/config:/root/.config/code-server \
  -v /path/to/workspace:/root/workspace \
  --restart unless-stopped \
  --name devenv \
  navdeepkhaira/code-server:tagname

🛠 Available Tools

Once your container is running and you access code-server:

  • Terminal Access: Open integrated terminal in code-server
  • PowerShell: Type pwsh to start PowerShell
  • Vim Editor: Use vim filename or vi filename
  • Checkov Scanner: Run checkov --help for infrastructure security scanning
  • Git Operations: Full git functionality for version control
  • Python Development: Python 3 with pip and virtual environment support

🔧 Configuration

Default Settings
  • Port: 8087
  • Authentication: Password by default
  • Working Directory: /root
  • Config Location: /root/.config/code-server/config.yaml
Security Considerations

Change password for authentication by modifying the config:

bind-addr: 0.0.0.0:8087
auth: password
password: your-secure-password
cert: false

🎯 Use Cases

  • Infrastructure as Code Development: Write and scan Terraform, CloudFormation templates
  • DevOps Automation: PowerShell and Python scripting for CI/CD pipelines
  • Cloud Development: Remote development environment accessible from any device
  • Security Scanning: Built-in Checkov for infrastructure security analysis
  • Learning Environment: Perfect for DevOps training and experimentation

📦 Docker Commands

# Build from source
git clone <your-repo>
cd <your-repo>
docker build -t ubuntu-codeserver .

# Run with custom settings
docker run -d \
  --name mydev \
  -p 8087:8087 \
  -e PASSWORD=mysecretpassword \
  ubuntu-codeserver

# View logs
docker logs mydev

# Access container shell
docker exec -it mydev bash

🔄 Automatic Startup

The container automatically starts code-server on boot. Code-server will be available immediately after container creation at http://localhost:8087.

📝 Environment Variables

VariableDescriptionDefault
PASSWORDCode-server passwordmyc0d353rv3r
PORTCode-server port8087

🤝 Contributing

This image is designed for development and DevOps workflows. Feel free to extend it with additional tools as needed for your specific use case.

📄 License

This project is open source. Please check individual tool licenses for their respective terms.


Tags: ubuntu, code-server, vscode, devops, checkov, powershell, vim, python, development, infrastructure-as-code

Tag summary

Content type

Image

Digest

sha256:adc85fd66

Size

512.5 MB

Last updated

about 1 year ago

docker pull navdeepkhaira/code-server