项目作者: kuhnuri

项目描述 :
Kuhnuri worker
高级语言: Scala
项目地址: git://github.com/kuhnuri/kuhnuri-worker.git
创建时间: 2017-04-11T17:54:11Z
项目社区:https://github.com/kuhnuri/kuhnuri-worker

开源协议:Apache License 2.0

下载


Kuhnuri Worker

DITA-OT Worker that communicates with a Queue over REST.

Process

The Worker has a single loop where

  1. Worker polls Queue for work
  2. Queue returns a job
  3. Worker downloads the source
  4. Worker processes job
  5. Worker uploads the results
  6. Worker submits the results to Queue

If Queue has no work available, the process is

  1. Worker polls Queue for work
  2. Queue returns a no work
  3. Worker takes a nap

Source and results support

The following URI schemes are supported for source content:

  • file
  • jar

The following URI schemes are supported for result content:

  • file
  • jar

Building

Compile the code:

  1. sbt compile

Develoment

Running a development version:

  1. sbt run

Running in Docker

The following volumes are used:

  • /var/log/app: Logs directory
  • /tmp/app: Temporary file directory
  • /var/lib/app: State file directory

Deploying

Build a distribution package:

  1. sbt dist