From 52f95191e9114727a2bb64f0edcd92543a0be4be Mon Sep 17 00:00:00 2001 From: bertl4398 Date: Fri, 17 Jun 2016 15:30:26 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 40 ++++++++++++---------------------------- 1 file changed, 12 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index c79f749..bbb2570 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,19 @@ This project ports the SNIA CDMI-Server reference implementation to a Spring Boo * JDK 1.8+ * [Maven 3+](https://maven.apache.org/) - +* cdmi-spi-\.jar +* ## Build & Run & Configure -The project uses maven build automation tool that will build one fat jar Spring Boot application. +The project uses the Maven build automation tool that will build one fat jar Spring Boot application. + +It depends on the cdmi-spi Java SPI [cdmi-spi](https://github.com/indigo-dc/cdmi-spi) library. + +You should first install the cdmi-spi-\.jar into your local Maven repository, e.g. + +``` +mvn install:install-file -Dfile=cdmi-spi-0.0.1-SNAPSHOT.jar +``` ``` mvn clean package @@ -27,7 +36,7 @@ To specify the server port use the ```--server.port=PORT``` parameter, default " java -jar cdmi-server-0.0.1-SNAPSHOT.jar --server.port=9000 ``` -To specify the data root directory use the ```--cdmi.data.baseDirectory=DIR``` parameter, default "data" (relative to the jar execution). +To specify the data root directory use the ```--cdmi.data.baseDirectory=DIR``` parameter, default "test" (relative to the jar execution). ``` java -jar cdmi-server-0.0.1-SNAPSHOT.jar --cdmi.data.baseDirectory=/cdmi/data @@ -35,31 +44,6 @@ java -jar cdmi-server-0.0.1-SNAPSHOT.jar --cdmi.data.baseDirectory=/cdmi/data All configuration for the application can be done either via command line parameters or in the application.properties file. -Configuration for the CDMI capabilities (QoS) is done in capabilities.properties.json - -For example to add a new container class insert following into the capabilities.properties.json file and rebuild. - -``` -{ ... -... -container-capabilities: -{ -... -ssd: { - cdmi_list_children: true, - cdmi_read_metadata: true, - cdmi_modify_metadata: true, - cdmi_create_dataobject: true, - cdmi_post_dataobject: false, - cdmi_create_container: true, - cdmi_copy_dataobject: true, - cdmi_qos_accesslatency: 10, - cdmi_qos_durability: 95, - cdmi_qos_price: 3 -}, -... -``` - It is recommended to run the application behind a https proxy with e.g. apache,nginx ... ## Tests From d4303981e407da119740879b1920d7afdc59c5b1 Mon Sep 17 00:00:00 2001 From: bertl4398 Date: Fri, 17 Jun 2016 15:30:42 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bbb2570..451608e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This project ports the SNIA CDMI-Server reference implementation to a Spring Boo * JDK 1.8+ * [Maven 3+](https://maven.apache.org/) * cdmi-spi-\.jar -* + ## Build & Run & Configure The project uses the Maven build automation tool that will build one fat jar Spring Boot application.