- Install Che development prerequisites
- Clone the official che git repository and checkout the openshift-connector branch:
git clone https://github.com/eclipse/che
cd che
git checkout openshift-connector
- Set some environment variables (or run
. ./scripts/setenv-for-build.sh
)
export CHE_IMAGE_REPO=rhche/che-server
export CHE_IMAGE_TAG=nightly
export GITHUB_REPO="/Users/mariolet/Github/che"
eval $(minishift docker-env)
- CHE_IMAGE_REPO and CHE_IMAGE_TAG are the Docker image name and tag which will be built.
- GITHUB_REPO points to the local directory where the official Che repo was checked out
In the rh-che repository, build Che by executing the following script:
scripts/build.sh
- Get minishift (we have tested with v1.0.0beta4)
- Minishift v1.0.0beta4 includes the
oc
binary, and this should be added to your$PATH
. The binary is located in the.minishift/cache/oc/<oc version>/
directory (e.g. on Linux, it is in~/.minishift/cache/oc/v1.4.1/
).
- Minishift v1.0.0beta4 includes the
- Get gofabric8 (we have tested with v0.4.121)
- Clone fabric8-online git repository:
git clone https://github.com/fabric8io/fabric8-online.git
- Set some environment variables (or run
. ./scripts/setenv-for-deploy.sh
)
export OPENSHIFT_USERNAME="developer"
export OPENSHIFT_PASSWORD="developer"
export CHE_OPENSHIFT_PROJECT="eclipse-che"
export CHE_HOSTNAME="che.$(minishift ip).nip.io"
export CHE_LOG_LEVEL="INFO"
export CHE_DEBUGGING_ENABLED="false"
export FABRIC8_ONLINE_PATH="/home/user/github/fabric8-online/"
- OPENSHIFT_USERNAME and OPENSHIFT_PASSWORD are used to configure which Openshift account will be used
- CHE_OPENSHIFT_PROJECT is the name of the project in Openshift in which Che will be deployed
- CHE_HOSTNAME will be the hostname from which Che will be accessible after deployment
- CHE_LOG_LEVEL is the logging level (DEBUG, INFO, WARN, ERROR etc)
- CHE_DEBUGGING_ENABLED set this to "true" to allow remote Java debugging of the Che server
- FABRIC8_ONLINE_PATH is the full path to the fabric8-online binary
scripts/create-all.sh
If you wish to redeploy Che after rebuilding (using the build.sh script described above), execute the following command:
oc rollout latest che -n eclipse-che
scripts/delete-all.sh