Sign inSign up

leapslabs/leaps_center

By leapslabs

Updated about 2 months ago

Image
0

4.4K

leapslabs/leaps_center repository overview

How to use this image

Start a leaps_center instance

docker run -d -p 80:8080/tcp --name some_name -v /path/to/data/data/:/app/data/ -e LEAPS_CENTER_HOME=/app/data/ leapslabs/leaps_center:latest sh -c "cd /app &&  java -jar leaps-center-web.jar"

where some_name is the name you want to assign to your container and tag is the tag specifying the leaps-center-web version you want. See the list above for relevant tags.

The leaps_center image must operate with externally mounted folder which contains configuration files and space for application logs and configuration/node history databases. The option -v /path/to/data/:/app/data/ mount the folder located in /path/to/data/ to internal /app/data folder. The data folder must contain files described below.

Recommended run options

  • --user $(id -u):$(id -g) Run the instance under a specific user and group.
  • --restart unless-stopped Restart automatically the instance in case the server would crash.

Configuration files

application.properties

This configuration file controls application logging.

#
#	LEAPS - Low Energy Accurate Positioning System - LEAPS Center.
#
#	Copyright (c) 2016-2026, LEAPS.
#
#	Licensed under the Apache License, Version 2.0 (the "License");
#	you may not use this file except in compliance with the License.
#	You may obtain a copy of the License at
#
#	http://www.apache.org/licenses/LICENSE-2.0
#
#	Unless required by applicable law or agreed to in writing, software
#	distributed under the License is distributed on an "AS IS" BASIS,
#	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#	See the License for the specific language governing permissions and
#	limitations under the License.

#default WINDOWNS("user.home"/leaps-center-log/leaps-center-web.log), UNIX(/var/log/leaps-center-web.log)

# Logging file
#logging.file.name=/app/data/log/leaps-center-web.log

# Level log TRACE < DEBUG < INFO < WARN < ERROR < OFF, default is OFF
logging.level.root=OFF
leaps-center-history.properties

This configuration file controls node position history logging.

#
#	LEAPS - Low Energy Accurate Positioning System - LEAPS Center.
#
#	Copyright (c) 2016-2026, LEAPS.
#
#	Licensed under the Apache License, Version 2.0 (the "License");
#	you may not use this file except in compliance with the License.
#	You may obtain a copy of the License at
#
#	http://www.apache.org/licenses/LICENSE-2.0
#
#	Unless required by applicable law or agreed to in writing, software
#	distributed under the License is distributed on an "AS IS" BASIS,
#	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#	See the License for the specific language governing permissions and
#	limitations under the License.

# =======================================================================================================
# DBMS (SQLITE) 
# =======================================================================================================

# History - SQLite Database Example (default).
# history.dbms=SQLITE
# history.db.jdbc.url=jdbc:sqlite:leaps-center-history.db
# history.db.username=
# history.db.password=
# history.sqlite.vacuum=false

leaps-center-web.conf

TODO

JAVA_OPTS="-Xms256m -Xmx512m -Xss256k"

leaps-center-web.properties

This configuration file controls leaps_center application.

#
#	LEAPS - Low Energy Accurate Positioning System - LEAPS Center.
#
#	Copyright (c) 2016-2026, LEAPS.
#
#	Licensed under the Apache License, Version 2.0 (the "License");
#	you may not use this file except in compliance with the License.
#	You may obtain a copy of the License at
#
#	http://www.apache.org/licenses/LICENSE-2.0
#
#	Unless required by applicable law or agreed to in writing, software
#	distributed under the License is distributed on an "AS IS" BASIS,
#	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#	See the License for the specific language governing permissions and
#	limitations under the License.
#

# SQLite Database.
db.dbms=SQLITE
# db.jdbc.url=jdbc:sqlite:leaps-center-db
# db.username=
# db.password=

# show sql (default false)
# db.jpa.show-sql=false

# format sql (default false)
# db.jpa.format-sql=false

# =======================================================================================================
# Network
# =======================================================================================================

# create the default network if it does not exist when starting. (default true)
network.create.default.network=true
network.create.default.floor.plan=false

# change the networkId via the gateway message.
network.change.network.id.via.gateway.message=false

network.default.id=1234
network.default.name=LEAPS

# network type, PANS or LEAPS
network.default.network.type=LEAPS

# PAN_ID or HOST
network.default.mqtt.connection.type=HOST

# WS or SSE
network.default.web.client.connection.type=SSE

# MQTT
mqtt.host=localhost
mqtt.ws.port=15675
mqtt.tcp.port=1883
mqtt.username=leaps
mqtt.password=leaps

mqtt.topic.prefix=leaps
mqtt.tag.topic.prefix=node
mqtt.anchor.topic.prefix=node

# define if the network id will be added in the topic prefix
mqtt.add.network.id.topic.prefix=true

# Enable/Disable MQTT TLS
# mqtt.tls=true
# mqtt.tls.host.name.verification.enabled=false
# CA_SIGNED_CERTIFICATE (signed by a publicly trusted CA), CA_FILE_CERTIFICATE (file certificate), SELF_SIGNED_CERTIFICATE (self signed file certificate);
# mqtt.tls.certificate.type=SELF_SIGNED_CERTIFICATE
# TLS Protocol: TLS_V1 (TLSv1), TLS_V1_1 (TLSv1.1), TLS_V1_2 (TLSv1.2), TLS_V1_3(TLSv1.3);
# mqtt.tls.protocol=TLS_V1_2
# mqtt.tls.certificate.file=/app/data/certs/cacert.pem

# mqtt.tls.client.certificate.file=/app/data/certs/leaps-center-broker-clientcert.pem
# mqtt.tls.client.key.file=/app/data/certs/leaps-center-broker-clientkey.pem
# mqtt.tls.client.password=

# =======================================================================================================
# Web server settings
# =======================================================================================================

# http session timeout
server.servlet.session.timeout=-1 

# maximum number of http sessions per user (-1 is unlimited)
server.max.sessions.per.user=-1

# mod-jk/ajp connector configuration
tomcat.ajp.enabled=false
# tomcat.ajp.port=8009
# tomcat.ajp.secret.required=false
# tomcat.apr.enabled=false

# server port (2-65535), (default 8080)
server.port=8080

# enable / disable https
server.ssl.enabled=false
# keystore format
# server.ssl.key-store-type=PKCS12
# keystore location
# server.ssl.key-store=/usr/share/leaps_center/key-store.p12
# keystore alias
# server.ssl.key-alias=leaps_center
# keystore password
# server.ssl.key-store-password=password
# SSL protocol to use
# server.ssl.protocol=TLS
# Enabled SSL protocols
# server.ssl.enabled-protocols=TLSv1.2

#server.servlet.context-path=/leaps_center
server.sent.events.timeout=2

Tag summary

Content type

Image

Digest

sha256:8d27a23ac

Size

208 MB

Last updated

about 2 months ago

docker pull leapslabs/leaps_center