Sentilo Catalog Web application official docker image
492
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 Catalog web application to manage the Sentilo platform.
This image is based in the Tomcat docker official image, using the 8.5.32 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 TOMCAT_VERSION. This parameter is the one that defines the version of Tomcat used by the image. Its default value is 8.5.32.
These are the parameters accepted by ENV:
| ENV param | Default value | Description |
|---|---|---|
| TOMCAT_PORT | 8080 | The Tomcat HTTP port |
| 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 |
| SENTILO_MULTITENANT_ENABLED | false | Enables the multitenant mode |
| SENTILO_STATE_PAGE_ENABLED | true | Enables the monitor's state page |
| JAVA_OPTS | - | Additional java vm options, by default uses above params that are beig passed as own options as shows this line: "-Dspring.profiles.active=$SPRING_PROFILES_ACTIVE -Dsentilo.multitenant=$SENTILO_MULTITENANT_ENABLED -Dsentilo.state_page.enabled=$SENTILO_STATE_PAGE_ENABLED" |
There are several 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. |
| Tomcat webapp directory path | /usr/local/tomcat/webapps | Default Tomcat webapps directory path (non modifiable via ENV parameters) |
NOTE: It is recommended to mount both Sentilo data 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-catalog-web \
-p 8080:8080 \
-v $PWD/conf:/etc/sentilo \
-v $PWD/logs:/var/log/sentilo \
--network sentilo-network \
sentilo/sentilo-catalog-web: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:fcbdf0bc2…
Size
116.5 MB
Last updated
over 3 years ago
docker pull sentilo/sentilo-catalog-web