Sentilo Agent Federation official docker image
287
The Barcelona City Council, through the Municipal Institute of Informatics (IMI), started in November 2012 a project conceived for define the strategy and the necessary actions in order to achieve global positioning Barcelona as a reference in the field of Smart Cities.
Sentilo is an open source sensor and actuator platform designed to fit in the Smart City architecture of any city who looks for openness and easy interoperability. It’s built, used, and supported by an active and diverse community of cities and companies that believe that using open standards and free software is the first smart decision a Smart City should take.
Sentilo is the piece of architecture that isolates the applications that are developed to exploit the information “generated by the city” and the layer of sensors deployed across the city to collect and broadcast this information.
In order to avoid vertical solutions, Sentilo is designed as a cross platorm with the objective of sharing information between heterogeneous systems and to easily integrate legacy applications.
You can find all available information about Sentilo in our official webpage: https://www.sentilo.io
This is the official docker image of the core component of the Sentilo platform, the Agent Federation. It runs over a Java8 environment and offers the Sentilo Agent Federation server module.
This image is based in the OpenJDK docker official image, using the 8 version.
It is possible to configure internal working directories, as well as mount some data volumes via ARG and ENV params.
The only accepted ARG type parameter is OPENJDK_VERSION. This parameter is the one that defines the version of OpenJDK used by the image. Its default value is 8 (minimum java version required), and it is not recommended to change it, since it could cause stability errors on the platform.
These are the parameters accepted by ENV:
| ENV param | Default value | Description |
|---|---|---|
| SENTILO_CONF_DIR | /etc/sentilo | The Sentilo conf path, here you must put your own .conf files |
| SENTILO_LOGS_DIR | /var/log/sentilo | The Sentilo logs output path |
| SENTILO_LOG_LEVEL | INFO | The logs level, accepted values are: TRACE, ERROR, WARN, DEBUG, INFO |
| SPRING_PROFILES_ACTIVE | dev | The active Spring profile, you can set it with cluster value in order to boot high availability mode |
There are two data volumes that can be mounted locally to be able to work easily with the image (they are also defined as configurable ENV variable):
| VOLUME | ENV param | Default value | Description |
|---|---|---|---|
| Sentilo conf directory path | SENTILO_CONF_DIR | /etc/sentilo | Defines where the .conf files needed by the platform will be located. It is recommended to mount this volume to easily locate the necessary conf files inside. |
| Sentilo logs directory path | SENTILO_LOGS_DIR | /var/log/sentilo | Defines in which path the output logs of the platform are located. It is recommended to mount this directory locally in order to easily exploit these log files. |
NOTE: It is recommended to mount both volumes in order to more precisely control the configuration and output logs of the platform. The related ENV parameters can be modified as needed, as shown in the previous section.
Run a docker container using this image:
$ docker run -d \
--name=sentilo-agent-federation \
-v $PWD/conf:/etc/sentilo \
-v $PWD/logs:/var/log/sentilo \
--network sentilo-network \
sentilo/sentilo-agent-federation:latest
IMPORTANT: Make sure you put your own .conf files in the config directory before booting this image, and have all the premises up and running (Redis, Mongo, etc...)
NOTE: you may receive an execution error on execute above docker run command if you don't create the newtork previously
It is recommended to create a docker network to connect all containers to it and manage internal connections easily:
$ docker network create sentilo-network
Content type
Image
Digest
sha256:a14298d96…
Size
112.4 MB
Last updated
over 3 years ago
docker pull sentilo/sentilo-agent-federation