Coder Social home page Coder Social logo

jmelis / che-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redhat-developer/che-starter

0.0 2.0 0.0 628 KB

REST endpoints for managing Eclipse Che servers and workspaces

Home Page: http://che-starter-dsaas-preview.b6ff.rh-idev.openshiftapps.com

License: Eclipse Public License 1.0

Shell 2.28% Java 97.72%

che-starter's Introduction

Build Status

che-starter

REST endpoints for managing Eclipse Che servers and workspaces.

Building from command line

Apache Maven is used for building the project:

    $ mvn clean verify

Running

There are several ways for running the project:

    $ mvn spring-boot:run
  • From Eclipse IDE you can simply right-click on Application.java -> Run As.. -> Java Application

  • From command line:

    $ java -jar target/che-starter-1.0-SNAPSHOT.jar

To tell it which application properties file to use (located in the src/main/resources directory) specify the spring.profiles.active parameter, like so:

    $ java -Dspring.profiles.active=local -jar target/che-starter-1.0-SNAPSHOT.jar 

Once the service is running, it would be available with Swagger documentation on http://localhost:10000/

  • Docker container:
docker build -t rhche/che-starter .
docker run -p 10000:10000 -t rhche/che-starter

Profiles

There are two available profiles, local and test. To select which profile to use, add the -Dspring.profiles.active property to the command line:

    $ java -Dspring.profiles.active=local -jar target/che-starter-1.0-SNAPSHOT.jar

Debugging

There are several ways for debugging the project:

  • From Eclipse IDE you can simply right-click on Application.java -> Debug As.. -> Java Application

  • Running the project in the debug mode from the command line:

    $ java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -Dspring.profiles.active=local -jar target/che-starter-1.0-SNAPSHOT.jar 

Integration test

Integration tests are running as part of the build against multi-tenant Che server deployed on prod-preview osd. In order to successfully run those tests locally OSIO_USER_TOKEN env var must be set before building the project:

    $ export OSIO_USER_TOKEN=<OSIO_PROD_PREVIEW_USER_TOKEN>

Test can be skipped via -DskipTests mvn command line argument.

CI Jobs

  1. https://ci.centos.org/job/devtools-che-starter-prcheck/

  2. https://ci.centos.org/job/devtools-che-starter-build-che-credentials-master/

On success, the second job will push the che-starter image to Docker Hub. Another copy is pushed to the local CentOS CI registry. The CentOS CI Registry hosted image can then be used by other components in the CentOS CI services, either as triggers or as a point of integration.

Live preview

Testing with Minishift

che-starter can be tested locally against Minishift. The instructions for running Minishift can be found in the How to deploy che-starter on Minishift ? document.

Code Conventions

  • Indent using spaces only
  • New line in the end

Apache Maven Checkstyle Plugin is used for validating the code conventions. All conventions can be found in the checkstyle.xml

License

EPL 1.0, See LICENSE file.

License Maven Plugin is used for license management. In order to update headers in source files run the following command:

    $ mvn license:update-file-header

che-starter's People

Contributors

hectorj2f avatar ibuziuk avatar jfchevrette avatar kbsingh avatar l0rd avatar rhopp avatar sbryzak avatar screwtsw avatar vpavlin 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.