GithubHelp home page GithubHelp logo

debovema / che-zero Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eclipsesource/che-zero

0.0 2.0 0.0 832 KB

License: Other

HTML 3.90% CSS 6.14% TypeScript 88.88% JavaScript 1.04% Shell 0.04%

che-zero's Introduction

che-zero

License: EPL v2.0 License: MIT

Disclaimer

  • This readme assumes that 192.168.99.100 is the IP for minikube. You can find the IP on your setup using minikube ip.
  • If your IP differs from the default, you can set it as environment variable REACT_APP_CHE_DOMAIN. E.g. if your Che runs on minikube with export REACT_APP_CHE_DOMAIN=$(minikube ip).nip.io
  • Che setups are a bit brittle (Che Updates, Kubernetes Updates, Minikube Updates) so parts of this setup may be out of date. The following versions were used as of writing:
    • minikube version: v1.7.3
    • Kubernetes Server Version: Major:"1", Minor:"17", GitVersion:"v1.17.3"
    • Chectl version: chectl/7.11.0 linux-x64 node-v10.19.0

Local Multi-User Che on Minikube

Links

https://keycloak-che.192.168.99.100.nip.io/

https://che-che.192.168.99.100.nip.io/

https://che-che.192.168.99.100.nip.io/swagger

Config options for Web App

Allow redirects/CORS from Web App

  • go to https://keycloak-che.192.168.99.100.nip.io/ and log in to the admin console (User: admin | Password: admin)
  • Navigate Clients -> Che-public -> add localhost:3000 to "Valid Redirect URIs" and "Web Origins". See the existing entries and create similar ones using the local host URL (Add http and https urls. urls end with /*/ for "Valid Redirect URIs")

Open CHE API for Web App

The Che API can be opened with or without using the Che operator.

Without Che operator

  • Disable Operator kubectl scale --replicas=0 deployment/che-operator -n che because the operator will undo the changes we make in the next step.
  • kubectl edit configmap che -n che and add the following (the keys should not exist yet)
CHE_CORS_ENABLED: "true"
CHE_CORS_ALLOW__CREDENTIALS: "false"
CHE_CORS_ALLOWED__ORIGINS: "*"
CHE_WSAGENT_CORS_ENABLED: "true"
CHE_WSAGENT_CORS_ALLOW__CREDENTIALS: "true"
CHE_WSAGENT_CORS_ALLOWED__ORIGINS: "NULL"
  • kubectl scale --replicas=0 deployment/che -n che
  • kubectl scale --replicas=1 deployment/che -n che

With Che operator

Set the required environment variables by patching the operator configuration. The operator will then automatically restart affected deployments of Che.

kubectl patch checluster/eclipse-che -n che --type=merge --patch "$(cat che-cors-settings-patch.yaml)"

Use different identify provider for login (Google Example)

Google Example

Enable in Keycloak

  • Login to admin console
  • Identify providers page -> Add provider... -> Google
  • Enter client ID and Secret

Skip Keycloak Login Page and go directely to Google

  • Login to admin console in keycloak
  • Authentication menu item -> Flows Tab -> Select Browser from Drop down -> In Identity Provider row select Actions -> Config
  • Create authenticator config with "google" as Default identify provider

License

Please see the LICENSE file for licensing information.

che-zero's People

Contributors

jfaltermeier avatar lucas-koehler avatar

Watchers

 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.