Skip to content
Snippets Groups Projects

Readme worker update

1 file
+ 29
1
Compare changes
  • Side-by-side
  • Inline
+ 29
1
@@ -28,7 +28,35 @@ The server allows for set-up using username `admin` and password `admin`. Config
as needed and restart the process.
### Worker
This is currently a work in progress. Ask Ewoud for details 🛂
Workers can be started with the worker jar or the worker docker image:
**Jar**:
```sh
java -jar worker.jar name=$NAME host=$HOST api-token=$APITOKEN api-protocol=$PROTOCOL api-port=$PORT
```
A table of arguments and their description:
| Argument | Description | Required | Default |
|--------------|------------------------------------------|----------|-----------|
| name | The name of this worker | 👌 | N/A |
| api-token | Worker API token | 👌 | N/A |
| host | The host on which to reach the core | 🙅 | localhost |
| api-protocol | Protocol to use for the API (http/https) | 🙅 | https |
**Docker**:
```sh
docker run -e {environment variables} wukl/auta-worker
```
As opposed to running the worker with the jar, all environment variables are mandatory.
A table of environment variables that should be passed to the container:
| Environment variable | Description |
|----------------------|------------------------------------------|
| COREADDRESS | Address to reach the core on |
| APIKEY | Worker API token |
| APIPORT | Port to reach the API on |
| APIPROTOCOL | Protocol to use for the API (http/https) |
### Devops
Loading