An open API service indexing awesome lists of open source software.

https://github.com/lren-chuv/woken-messages

Shared library containing the API and messages used in Woken applications
https://github.com/lren-chuv/woken-messages

algorithm-factory data-mining scala

Last synced: 5 months ago
JSON representation

Shared library containing the API and messages used in Woken applications

Awesome Lists containing this project

README

          

[![CHUV](https://img.shields.io/badge/CHUV-LREN-AF4C64.svg)](https://www.unil.ch/lren/en/home.html) [![License](https://img.shields.io/badge/license-AGPL--3.0-blue.svg)](https://github.com/LREN-CHUV/woken-messages/blob/master/LICENSE) [![Download](https://api.bintray.com/packages/hbpmedical/maven/woken-messages/images/download.svg)](https://bintray.com/hbpmedical/maven/woken-messages/_latestVersion)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/50b557498f404feb86f4d118eb6e143f)](https://www.codacy.com/app/hbp-mip/woken-messages?utm_source=github.com&utm_medium=referral&utm_content=HBPMedical/woken-messages&utm_campaign=Badge_Grade) [![CircleCI](https://circleci.com/gh/HBPMedical/woken-messages.svg?style=svg)](https://circleci.com/gh/HBPMedical/woken-messages)

# woken-messages library

This library contains the messages and API used in Woken ML applications.

## Usage

The library is hosted on [https://bintray.com/hbpmedical/maven/woken-messages](Bintray.com), follow the instructions from Bintray to configure Maven or sbt.

Maven dependency:

```xml

ch.chuv.lren.woken
woken-messages_2.11
3.0.14

```
sbt dependency:

```
"ch.chuv.lren.woken" %% "woken-messages" % 3.0.14
```

Woken-messages is provided for Scala 2.11 and Scala 2.12

## How to build

Prerequisites: docker, captain

1. Run the build script

```sh
./build.sh
```

It will build the scala project into a docker container.

## How to publish to MIP's binaries repository

1. Define the environment variables to log into BinTray

> BINTRAY_USER=
> BINTRAY_PASS=

2. Run the publish script
```
./publish.sh
```

# Configuration

The common configuration stored in Woken-messages for Akka clustering can be adjusted with the following environment variables:

* APP_NAME
* APP_TYPE
* VERSION
* BUILD_DATE
* DATA_CENTER_LOCATION
* HOST or DATA_CENTER_SERVER
* CONTAINER_ORCHESTRATION
* MESOS_CONTAINER_NAME
* MARATHON_APP_DOCKER_IMAGE
* MARATHON_APP_RESOURCE_CPUS
* MARATHON_APP_RESOURCE_MEM
* MARATHON_APP_LABELS
* MARATHON_APP_ID
* MARATHON_APP_VERSION
* BUGSNAG_KEY
* RELEASE_STAGE
* AKKA_LOG_LEVEL
* AKKA_LOG_CONFIG
* AKKA_REMOTING
* AKKA_REMOTE_LOG_SENT
* AKKA_REMOTE_LOG_RECEIVED
* AKKA_REMOTE_LOG_LIFECYCLE
* CLUSTER_IP
* CLUSTER_PORT
* CLUSTER_IP
* CLUSTER_NAME
* WOKEN_PORT_8088_TCP_ADDR
* WOKEN_PORT_8088_TCP_PORT
* VALIDATION_MIN_SERVERS
* SCORING_MIN_SERVERS

# Acknowledgements

This work has been funded by the European Union Seventh Framework Program (FP7/2007­2013) under grant agreement no. 604102 (HBP)

This work is part of SP8 of the Human Brain Project (SGA1).