No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit ahead of gchq:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
resources
.gitignore
Dockerfile.build
Dockerfile.deploy
LICENSE
Makefile
README.md

README.md

Copyright 2016 Crown Copyright, cybermaggedon

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.

Gaffer Docker

What you have here, is a Docker container for Gaffer. This is a small instance and is really only useful only development / trial purposes. But containerising allows a quick way to find out what Gaffer is like and develop against the interfaces. The container deploys: Hadoop, Accumulo, Zookeeper, and launches Gaffer using Wildfly.

The memory settings of Accumulo are low to ensure Accumulo runs in a small footprint. Budget for around 2GB for trivial amounts of data, 6GB for anything with some load.

To run:

docker run -it -p 8080:8080 gchq/gaffer:0.4.4

You can then access the Gaffer API at port 8080:

http://localhost:8080/rest

and the prototype Gaffer UI at:

http://localhost:8080/ui

When the container dies, the data is lost. If you want data to persist, mount a volume on /data e.g.

docker run -it -p 8080:8080 -v /data/gaffer:/data gchq/gaffer:0.4.4

The default schema deployed is usable. If you want to set your own schema then you need to change /usr/local/wildfly/schema/* by e.g. mounting replacement volumes.

At high input load, Zookeeper seems to continually grow until it exhausts the container memory footprint.

In future, I will probably detangle Hadoop, Accumulo, Zookeeper and Gaffer into separate containers to run linked.