Skip to content

cyverse-vice/vscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Supported by CyVerse Project Status: Active – The project has reached a stable, usable state and is being actively developed. DOI license

VS Code Server for CyVerse

A ready-to-use VS Code Server container with integrated data science tools, perfect for cloud development environments and the CyVerse Discovery Environment (DE).

Harbor Build Status GitHub commits since tagged version

Quick Start

Get started immediately using our pre-built container in the CyVerse Discovery Environment:

Features

This VS Code Server container comes with:

  • NVIDIA CUDA 12.5 - GPU acceleration support
  • Miniconda & Mamba - Efficient Python package management
  • Ollama - Run AI models locally
  • Git Credential Manager - Seamless Git authentication
  • GoCommands - CyVerse Data Store integration
  • Pre-installed VS Code Extensions:
    • Python
    • Jupyter
    • vscode-icons

Run Docker Locally

You can run this container on your local machine or a virtual machine:

# Pull the container
docker pull harbor.cyverse.org/vice/vscode:latest

# Run without GPU
docker run -it --rm -d -p 8080:8080 harbor.cyverse.org/vice/vscode:latest

# Run with GPU support
docker run -it --rm -d -p 8080:8080 --gpus all harbor.cyverse.org/vice/vscode:latest

After running the container, access VS Code at http://localhost:8080

CyVerse Integration

When used in the CyVerse Discovery Environment, this container automatically:

  • Connects to your CyVerse Data Store
  • Transfers your Git and SSH configurations
  • Provides access to CyVerse's high-performance computing and storage

Build Your Own Container

You can extend this container with your own tools:

FROM harbor.cyverse.org/vice/vscode:latest

# Add your own dependencies
RUN apt update && apt install -y your-package-here

# Add your own Python packages
RUN mamba install -y -c conda-forge your-python-package

Container Features

The Dockerfile implements several best practices:

  • Robust user/group handling compatible with the base image
  • Version-pinned dependencies for better reproducibility
  • Layer optimization to minimize container size
  • Built-in healthcheck for container monitoring
  • CUDA 12.5 and NVIDIA driver integration
  • Pre-configured VS Code extensions for Python development

Advanced Usage

For testing with mounted home directory:

docker run -it --rm -v /$HOME:/app --workdir /app -p 3000:3000 -e REDIRECT_URL=http://localhost:3000 harbor.cyverse.org/vice/vscode:latest

Resources

Developer Notes

Add the VS Code launch button to your website:

<a href="https://de.cyverse.org/apps/de/091c830a-4be1-11ec-aad9-008cfa5ae621/launch" target="_blank"><img src="https://img.shields.io/badge/VS%20Code-latest-6C33AF?style=plastic&logo=visualstudiocode"></a>

About

Open VSCode Server for VICE

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •