Giter VIP home page Giter VIP logo

code-server-openshift's Introduction

Coder/vscode OpenShift Template

An OpenShift Template to run a distribution of Coder's Visual Studio Code in browser on your OpenShift Cluster

Based on https://github.com/sr229/code-server-openshift and https://github.com/codercom/code-server/releases

Docker images

The latest tag is updated weekly using the latest code-server release

Running

Using Openshift CLI

oc new-app -f https://raw.githubusercontent.com/jefferyb/code-server-openshift/master/code-server-openshift-template.yaml -p URL=vscode.example.com -p CODER_PASSWORD=welcome2vscode

# OR

oc process -f https://raw.githubusercontent.com/jefferyb/code-server-openshift/master/code-server-openshift-template.yaml -p URL=vscode.example.com -p CODER_PASSWORD=welcome2vscode | oc create -f -

# OR

oc new-app --name=code-server --image=jefferyb/code-server -e CODER_PASSWORD=welcome2vscode
oc create route edge code-server --insecure-policy=Redirect --service=code-server --hostname=vscode.example.com

Using Kubernetes CLI

# Deploy
kubectl run code-server --image=jefferyb/code-server -e CODER_PASSWORD=welcome2vscode

Using Docker

# Deploy
docker run -itd --name code-server -e CODER_PASSWORD=welcome2vscode -p 9000:9000 -v "${PWD}:/home/coder/project" jefferyb/code-server

If we find /home/coder/projects/.setup/setup-vscode file in the container, we'll run/execute it to setup VS Code on startup. Useful when a container restarts and want to run a script to it setup automatically

Default Parameters for the OpenShift Template ( code-server-openshift-template.yaml )

  • NAME=code-server
  • URL=
  • CONTAINER_HOSTNAME=coder
  • CODER_PASSWORD=coder
  • CODER_ENABLE_AUTH=true
  • PVC_STORAGE=10Gi
  • DOCKER_IMAGE=jefferyb/code-server:latest

Added Packages

Added a few packages that can be used in vs code terminal

  • git
  • java
  • httpie
  • nodejs
  • python
  • ansible
  • OpenVPN
  • python3-pip
  • openssh-client
  • oc (OpenShift client)
  • kubectl (Kubernetes client)

code-server-openshift's People

Contributors

jefferyb avatar

Watchers

James Cloos avatar  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.