OGN gateway without any plugins, simply logging all beacons (raw files and IGC files)
2.4K
This is a base docker ogn-gateway image. This gateway does not have any pre-installed plugins. It can be used as a base image for other (specialized) gateways (e.g. the ogn-gateway-stats but it also can be launched in order to log data received from the OGN. It logs raw beacons, decoded beacons and IGC files.
$ docker run -d ogndocker/ogn-gateway-java
Note If you run it as described above the gateway will be logging all the data to a log folder inside the container. Fine, but most likely you may want to change that. You can do it simply by mounting external volume for the logs.
$ docker run -d -it -v 'C:/tmp/ogn/ogn-gateway/log/:/var/log/ogn-gateway' \
--rm -h ogn-gateway --name ogngateway \
-e OGN_GATEWAY_LOG_DIR=/var/log/ogn-gateway \
-p 61628:61628 ogndocker/ogn-gateway-java
In the above example, we mount C:\tmp\ogn-gateway\log volume to the container and all the logs will be written there. We also expose expose TCP port 61628 , so that the ogn-gateway process can be introspected via JMX
Create your docker-compose.yml
version: '2'
services:
ogn-gateway-stats:
image: ogndocker/ogn-gateway-java:latest
hostname: ogn-gateway-java
environment:
- OGN_GATEWAY_LOG_DIR=/var/log/ogn-gateway
ports:
- "61628:61628"
volumes:
- "C:/tmp/ogn/ogn-gateway/log/:/var/log/ogn-gateway"
- "C:/tmp/ogn/stats-db:/db"
(Note: of course update the volume paths accordingly to your needs)
Then (while in the folder where your docker-compose.yml file is located) run:
$ docker-compose up -d
Like in the above example, you can tune the default behavior of the gateway, by passing some environment variables (either directly with -e or in your docker-compose file
plugins subfolder of the ogn-gateway)List of additional parameters which can be passed and which will tune the connection to OGN server:
aprs.glidernet.org, but you might want e.g. to specify the exact instance (e.g. glidern1.glidernet.org)true if you want your client to be authenticated/validated by the OGN server (no need for read-only subscriptions)true if you want your client to connect over TLS/SSLThis project is MIT Licensed.
Content type
Image
Digest
Size
59.7 MB
Last updated
about 8 years ago
docker pull ogndocker/ogn-gateway-java