0.0.31 • Published 2 years ago

@provisioner/vscode v0.0.31

Weekly downloads
73
License
Apache-2.0
Repository
github
Last release
2 years ago

VS Code Provisioner

Build

At the root of the c6o node-monorepo:

yarn build --scope=@provisioner/vscode

Run from CLI

To run the provisioner, create a traxitt.yaml file, for example:

name: vscode
namespace: vscode
version: 0.0.1
description: This is the installer spec for the vscode remote development environment
services:
    - vscode:
        launch: true                # default false/undefined
        storage: 4Gi                # default 4Gi
        publicKey: "public rsa key" # default undefined

Drop it into a directory like ~/provisioners/vscode, then execute

czctl provision ~/provisioners/vscode

To test out VSCode once it's installed in a cluster:

code --folder-uri vscode-remote://ssh-remote%2Broot@${externalIP}/data

Where the IP address is the IP address of the provisioned LoadBalancer external IP. To get this (for example):

kubectl get svc -n vscode

NAME              TYPE           CLUSTER-IP      EXTERNAL-IP     PORT(S)          AGE
dev-pod-ssh-svc   LoadBalancer   10.245.81.114   138.197.236.7   22:30579/TCP     2m56s
dev-pod-svc       NodePort       10.245.66.7     <none>          3030:30361/TCP   2m55s

Parameters

ParameterMeaning
launchtrue to launch VSCode from c6o CLI
storagePVC storage for development
publicKeycontents of ssh public key used for authentication. If not defined, provisioner copies id_rsa.pub from ~/.ssh

Server paths

The provisioner module serve method handles HTTP requets for an express server. The serve function supports the following paths:

PathContents
index.jsimplementation of <vscode-capacity> for use in the configuration wizard
0.0.31

2 years ago

0.0.30

3 years ago

0.0.29

3 years ago

0.0.28

3 years ago

0.0.27

3 years ago

0.0.26

3 years ago

0.0.25

3 years ago

0.0.24

3 years ago

0.0.22

3 years ago

0.0.23

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago