Giter Club home page Giter Club logo

webshell-env's Introduction

theia-env

Creates a theia based webshell runtime in kubernetes itself

build.sh

This script can be started locally to build and test.

./build.sh
docker run --rm -p 3000:3000 --name theia acend/theia

Deploy using Helm Chart

This will deploy one webshell. If multiple webshells are needed, create as many instances in seperated Namespaces as you want. Create a values.yaml e.g.:

student: "mystudent" # This should be the namespace where the student's webshell is deployed to
password: "supersecretbassword" # For the basic-auth Autentication

ingress: # Make sure this fits your enviornemt!
  enabled: true
  className: "nginx"
  annotations: 
    ingress.kubernetes.io/ssl-redirect: "true"
    nginx.ingress.kubernetes.io/auth-type: basic
    nginx.ingress.kubernetes.io/auth-secret: basic-auth
  hosts:
    - host: mystudent.<domain>
      paths:
        - path: /
          pathType: ImplementationSpecific
  tls: 
   - secretName: <secretname>
     hosts:
       - mystudent.<domain>

<secretname>: you have to make sure that this secrets exists in your Namespace. This Helm Chart does not create a TLS Secret/Certificate for you.

helm repo add acend-webshell https://acend.github.io/webshell-env/
helm upgrade --install --namespace mystudent webhell acend-webshell/webshell -f values.yaml

Release a new Chart Version

When changing version in deploy/charts/webshell/Chart.yaml a new chart version is automaticly released and available in the chart repositoy https://acend.github.io/webshell-env/

workflow

Edit the amount of student you need and run the setup.sh script against a kubernetes cluster

If everthing is deployed you will have file in your home dir which contains all the different urls with the login informations

The student can use docker und kubectl directly in against their namespace where theia is deployed (e.g. student1)

webshell-env's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lopof

webshell-env's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Package lookup failures

Warning

Renovate failed to look up the following dependencies: Failed to look up docker package registry.redhat.io/openshift4/ose-oauth-proxy.

Files affected: deploy/charts/webshell/values.yaml


Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
build/Dockerfile
  • node 20-bookworm
  • node 20-bookworm-slim
github-actions
.github/workflows/build.yaml
  • actions/checkout v4
  • docker/setup-qemu-action v3
  • docker/setup-buildx-action v3
  • docker/login-action v3
  • docker/login-action 0d4c9c5ea7693da7b068278f7b52bda2a190a446
  • docker/build-push-action v6
.github/workflows/pr-cleanup.yaml
  • actions/checkout v4
.github/workflows/push-main.yaml
  • actions/checkout v4
  • azure/setup-helm v4
  • helm/chart-releaser-action v1.6.0
  • actions/checkout v4
  • docker/setup-qemu-action v3
  • docker/setup-buildx-action v3
  • docker/login-action v3
  • docker/login-action 0d4c9c5ea7693da7b068278f7b52bda2a190a446
  • docker/build-push-action v6
.github/workflows/release.yaml
  • actions/checkout v4
  • docker/setup-qemu-action v3
  • docker/setup-buildx-action v3
  • docker/login-action v3
  • docker/login-action 0d4c9c5ea7693da7b068278f7b52bda2a190a446
  • docker/build-push-action v6
  • actions/checkout v4
  • azure/setup-helm v4
  • azure/setup-kubectl v4
helm-values
deploy/charts/webshell/values.yaml
  • docker 26.1.4-dind
  • registry.redhat.io/openshift4/ose-oauth-proxy v4.13
regex
build/Dockerfile
  • eclipse-theia/theia-blueprint 1.49.101
  • argoproj/argo-cd v2.11.3
  • Azure/azure-cli 2.51.0
  • helm/helm v3.15.2
  • kubernetes/kubernetes v1.30.2
  • hashicorp/terraform v1.8.5
  • terraform-linters/tflint v0.51.1
  • kubernetes/minikube v1.33.1
  • aquasecurity/trivy v0.52.2
  • tektoncd/cli v0.37.0

  • Check this box to trigger a request for Renovate to run again on this repository

Webshells do not come up on OCP4.11

On OpenShift 4.11, webshells end up CrashLooping with the following logs:

fixuid: fixuid is not running as root, ensure that the following criteria are met:
- fixuid binary is owned by root: 'chown root:root /path/to/fixuid'
- fixuid binary has the setuid bit: 'chmod u+s /path/to/fixuid'
- NoNewPrivileges is disabled in container security profile
- volume containing fixuid binary does not have the 'nosuid' mount option

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: packageRules: You have included an unsupported manager in a package rule. Your list: docker-compose,npm,nvm,github-actions,docker-file,regex. Supported managers are: (ansible, ansible-galaxy, argocd, asdf, azure-pipelines, batect, batect-wrapper, bazel, bazel-module, bazelisk, bicep, bitbucket-pipelines, buildkite, bundler, cake, cargo, cdnurl, circleci, cloudbuild, cocoapods, composer, conan, cpanfile, deps-edn, docker-compose, dockerfile, droneci, fleet, flux, fvm, git-submodules, github-actions, gitlabci, gitlabci-include, gomod, gradle, gradle-wrapper, helm-requirements, helm-values, helmfile, helmsman, helmv3, hermit, homebrew, html, jenkins, jsonnet-bundler, kotlin-script, kubernetes, kustomize, leiningen, maven, maven-wrapper, meteor, mint, mix, nix, nodenv, npm, nuget, nvm, osgi, pep621, pip-compile, pip_requirements, pip_setup, pipenv, poetry, pre-commit, pub, puppet, pyenv, ruby-version, sbt, setup-cfg, swift, tekton, terraform, terraform-version, terragrunt, terragrunt-version, tflint-plugin, travis, velaci, woodpecker, regex).

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.