Based on Mike McMahon's excellent scripts. Modified to follow official Docker images' practices more closely by Peter Petrov. This repository is maintained by the folks at Ripple Labs.
This image can be used directly as a way to get access to the fdbcli
utility.
# Run a FoundationDB Server
docker run -d --name fdb quay.io/ripple/fdb-server
# Connect to it from another container and print the cluster status
docker run --rm --volumes-from fdb quay.io/ripple/fdb-client fdbcli --exec "status details"
You can also run fdbcli in interactive mode:
docker run -it --rm --volumes-from fdb quay.io/ripple/fdb-client fdbcli
Mount the existing cluster file on the Docker host into the container as /etc/foundationdb/fdb.cluster
. Make sure that it is readable by everyone, as user ids may not line up.
docker run --rm -v <path to cluster file>:/etc/foundationdb/fdb.cluster:r quay.io/ripple/fdb-client fdbcli --exec "status details"
Image | GitHub | Quay.io |
---|---|---|
FoundationDB Server | ripple/docker-fdb-server | |
FoundationDB Client | ripple/docker-fdb-client |