Clipper runs multiple separate processes. One simple way to orchestrate
all of these processes is to run each one in a Docker container and use
docker-compose to start and stop them
all simultaneously. The docker-compose script in this directory specifies the
dependencies between containers and the runtime arguments for each container.
Consult the Docker documenation for instructions on installing the Docker engine.
Once Docker is installed, you can install docker-compose using your OS's package manager.
On Debian/Ubuntu:
$ apt-get install docker-composeOn a Mac:
$ brew install docker-composeFrom within this directory ($CLIPPER_ROOT/docker/), run
$ docker-compose up -d query_frontendto start the services. You can then interact with Clipper normally.
Note: You have to run the
docker-composecommands from within this directory because the command looks for adocker-compose.ymlfile in the current directory to resolve container names. Consult the Docker-Compose documentation for more information.
# See all running docker containers
$ docker ps
# or just the containers docker-compose started
$ docker-compose ps
# view logs for container named docker_query_frontend_1
$ docker logs docker_query_frontend_1
# tail a logfile
$ docker logs --follow docker_query_frontend_1You can run the client example to create a new application endpoint and start querying Clipper.
To stop the Clipper containers, from within this directory run:
$ docker-compose stop