Skip to content

Deployment

Farshid Tavakolizadeh edited this page May 27, 2020 · 12 revisions

The directory is available as Docker Images as well as binaries for various architectures.

Docker

Run the latest build of Thing Directory with the default configuration file (thing-directory.json):

docker run -p 8081:8081 linksmart/td

The index of the HTTP API should now be accessible at: http://localhost:8081

To run a stable version of the directory, use tagged images. The tags are listed here and are similar to those on the repository.

The configurations can be changed using environment variables or by mounting a directory and providing the paths in CLI arguments. For more information about the CLI arguments, set --help flag.

Binary Distribution

  1. Download the binary distribution and configuration file from releases
  2. Download the WoT Thing Description JSON Schema document. E.g. wot_td_schema.json
  3. Run, e.g. in Linux/AMD64:
./thing-directory-linux-amd64 --conf ./thing-directory.json --schema ./wot_td_schema.json

For more information about the CLI arguments, set --help flag.

Refer to configurations for details on the configuration parameters.

Clone this wiki locally