33Service for creating and managing groups of KBase users and associated Narratives.
44
55Build status (master):
6- [ ![ Build Status] ( https://travis-ci.org/kbase/groups.svg?branch=master )] ( https://travis-ci.org/kbase/groups )
76[ ![ codecov] ( https://codecov.io/gh/kbase/groups/branch/master/graph/badge.svg )] ( https://codecov.io/gh/kbase/groups )
87
98## API Data structures
@@ -983,24 +982,41 @@ that the fields be kept few and small in size.
983982## Requirements
984983
985984Java 8 (OpenJDK OK)
986- Apache Ant (http://ant.apache.org/)
987985MongoDB 2.6+ (https://www.mongodb.com/)
988986Jetty 9.3+ (http://www.eclipse.org/jetty/download.html)
989987 (see jetty-config.md for version used for testing)
990988This repo (git clone https://github.com/kbase/groups)
991- The jars repo (git clone https://github.com/kbase/jars)
992- The two repos above need to be in the same parent folder.
993989
994- ## To start server
990+ ## Starting the server
995991
996- start mongodb
997- if using mongo auth, create a mongo user
998- cd into the groups repo
999- `ant build`
1000- copy `deploy.cfg.example` to `deploy.cfg` and fill in appropriately
1001- `export KB_DEPLOYMENT_CONFIG=<path to deploy.cfg>`
1002- `cd jettybase`
1003- `./jettybase$ java -jar -Djetty.http.port=<port> <path to jetty install>/start.jar`
992+ ### Docker
993+
994+ The provided `Dockerfile` can be used to build and run an image. See the deployment template
995+ in `deployment/conf/.templates` for the environment variables available to configure the
996+ service - the `deploy.cfg.example` file provides documentation for these variables.
997+
998+ `docker-compose --build -d` can be used to start a MongoDB instance and groups
999+ service pointed at the KBase environment of your choice.
1000+
1001+ ### Manually
1002+
1003+ * Start mongodb
1004+ * If using mongo auth, create a mongo user
1005+ * `cd` into the groups repo
1006+
1007+ ```shell
1008+ ./gradlew war
1009+ mkdir -p jettybase/webapps
1010+ cp build/libs/groups.war jettybase/webapps/ROOT.war
1011+ ```
1012+
1013+ * copy ` deploy.cfg.example ` to ` deploy.cfg ` and fill in appropriately
1014+
1015+ ``` shell
1016+ export KB_DEPLOYMENT_CONFIG=< path to deploy.cfg>
1017+ cd jettybase
1018+ ./jettybase$ java -jar -Djetty.port=< port> < path to jetty install> /start.jar
1019+ ```
10041020
10051021## Developer notes
10061022
@@ -1016,14 +1032,14 @@ copy `deploy.cfg.example` to `deploy.cfg` and fill in appropriately
10161032* Releases
10171033 * The master branch is the stable branch. Releases are made from the develop branch to the master
10181034 branch.
1019- * Update the version as per the semantic version rules in `src/us/kbase/groups/api/Root.java`.
1035+ * Update the version as per the semantic version rules in ` src/main/java/ us/kbase/groups/api/Root.java ` .
10201036 * Tag the version in git and github.
10211037
10221038### Running tests
10231039
10241040* Copy ` test.cfg.example ` to ` test.cfg ` and fill in the values appropriately.
10251041 * If it works as is start buying lottery tickets immediately.
1026- * `ant test`
1042+ * ` ./gradlew test`
10271043
10281044### UI
10291045
0 commit comments