Skip to content

cloudius-systems/mgmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

This is the OSv management layer implementation, its mainly implemented in Java and JRuby.

Build

This project is built using Gradle, there is no need to install it just run the provided wrapper.

Available tasks:

 # Creating cli jar
 $ ./gradlew :cli:jar
 # Creating web jar
 $ ./gradlew :web:jar
 # Running the web application
 $ ./gradlew :web:runapp

Adding new modules

  • mkdir mgmt/${new-module}/src/main/java/com/ -p
  • vi mgmt/settings.gradle (and the module name to the list)
  • create a new mgmt/${new-module}/build.gradle file under the new module see mgmt/sshd/build.gradle as an example (ask me if you need more guidance).

CRaSH

In order to execute current crash build locally, you must select a different "jline.Terminal" implementation. The current terminal that was built for OSv (com.cloudius.cli.OSvTerminal) is using the stty JNI for sending commands to ioctl.

So there are two ways to execute it:

  1. Launch crash with a automatic terminal implementation discovery: java -Djline.terminal=auto -jar crash/build/libs/crash-1.0.jar
  2. Copy stty.so (from the master project build) to /usr/lib/jni/stty.so, and launch crash: java -jar crash/build/libs/crash-1.0.jar

CRaSH SSHD

After launching CRaSH, you will need to configure an SSH key pair for authentication.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages