Skip to content

johnb30/cliff-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cliff-docker

A Docker image for the CLIFF geolocation software.

Use

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.

This docker image uses a build and release workflow. The Lucene index is built using the build_server image. The index is then copied to the host and can be mounted as a volume to the actual CLIFF server container.

Build the index with:

make buildindex

This step builds the index and copies it to the host using the HOST_INDEX_LOCATION variable. The default location is /etc/cliff2/IndexDirectory.

Build the server with:

make buildserver

The CLIFF version is defined by CLIFF_VERSION and defaults to 2.3.0.

Run the server with:

make run

This command mounts the index from the host to a Docker volume and starts the container, running cliff on the port defined by CLIFF_PORT. The default is 8080.

The API endpoint for CLIFF is /CLIFF-2.3.0/parse/text.

Acknowledgements

This pulls heavily from Andy Halterman's CLIFF-up Vagrant box. You can see his repo for more examples of how to make use of CLIFF.

About

A Docker image for the CLIFF geolocation software.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •