Eclipse Che

From My Wiki
Jump to: navigation, search

Eclipse Che is a developer workspace server and cloud IDE.

Pre-requisites

Docker

curl -sSL https://get.docker.com/ | sh
sudo usermod -aG docker $your_user

Java

sudo apt-get install -y python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install -y oracle-java8-installer

and then add to PATH, and set JAVA_HOME environment variable for Che to use

export JAVA_HOME=/usr
export PATH=$JAVA_HOME/bin:$PATH


Maven

wget http://www-us.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar zxvf *.tar.gz

and then add to PATH

export PATH=~/apache-maven-3.3.9/bin:$PATH

Installation

git clone https://github.com/eclipse/che.git
cd che/assembly
mvn clean install
cd che/assembly/assembly-main/target/eclipse-che-<version>/eclipse-che-<version>

Run

bin/che.sh run

or if you're going to access from non localhost web browser

bin/che.sh run --remote:104.197.184.136

Use

In browser, go to <host ip>:8080

Issues

UID=1000 user is required to run it.

(had this issue running on google cloud). check which user this is by doing

cat /etc/passwd|grep 1000

note, may need to switch user:

sudo su <username> 

note, may need to set password before switching to that user

sudo passwd <username> 

cloud/firewall notes

make sure these ports are opened!

tcp:8080
tcp:32768-65535

otherwise this error message happens when you try to create a workspace after loading it: "workspace agent. Error when trying to start the workspace agent: Timeout reached. The Che server has been unable to verify that your workspace's agent has successfully booted. Either the workspace is unreachable, ..."

Links