The official Docker image for the CLIFF-CLAVIN geolocation software.
Note: CLAVIN, and by extension CLIFF, is very memory hungry due to the geonames index. To properly run, a minimum of 4GB of RAM is necessary. Any less and you'll experience errors.
Building the Image
docker build -t cliff:2.6.1 .
Running the Image
It is setup to use the default port of
8080. Run using
docker run -p "8080:8080" -d cliff:2.6.1
The first time it runs it will take a while to load all the data. You can watch the docker logs to monitor the progress. Web requests won't return anything valid while it is loading.
Once it is loaded, you can test it at a URL like:
This takes a lot of memory, so if it doesn't work keep an eye on the docker log for "java.lang.OutOfMemoryError: Java heap space" errors.