GithubHelp home page GithubHelp logo

remote-workspace's Introduction

Remote Workspaces PoC

QuickStart

# Create a git project to maintain all your remote workspaces
declare \
  gitops_dir="${HOME}/Documents/Repositories/homelab-gitops/"
mkdir -p "${gitops_dir}"
cd "${gitops_dir}"
git init .

# Export ENV Vars
export KUBECONFIG="${gitops_dir}/.cache/kubeconfig"
# See the values.yaml file for the registry in use
export CONTAINER_REGISTRY_USERNAME="..."
export CONTAINER_REGISTRY_PASSWORD="..."
export USER_SSH_KEY="${HOME}/.ssh/dev"
export USER_SSH_PUB_KEY="${HOME}/.ssh/dev.pub"

# Build Up a Remote Workspace
remote-workspace.sh --log-level info \
  up \
    "[email protected]:pahansen95/eap-proxy.git"

# Tear Down a Remote Workspace (Doesn't Delete Workspace Data)
remote-workspace.sh --log-level info \
  down \
    "[email protected]:pahansen95/eap-proxy.git"

Goal

PoC to build remote Ephemeral (Dev, Ops, etc...) Workspaces in a Kubernetes cluster.

Requirements

  • Invoked locally
  • Runs in a Kubernetes Cluster
  • Workspace Folder Persistent, Everything else Ephemeral
    • Workspace Folder built from Commit of project
  • Remote Connection via VSCode
  • Loads Secrets (Git, SSH, etc...) from local machine

Design

  • A Remote Container Exists that serves as the working environment.
    • VsCode Extensions
  • (Future State) A set of Network Addressable Services
  • A PV that holds the workspace folder & is mounted at the designated workspace path.
    • Originally created from a Commit SHA
  • A Client side CLI tool that is used to build up & tear down the workspace.
  • Client Side VsCode connects to the Remote Container

remote-workspace's People

Contributors

pahansen95 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.