The Docker orchestration is comprised of the following:
$ mvn clean package assembly:single -DskipTests
$ cd ratis-logservice && ./build-docker.sh
The above will create a Docker image tagged as ratis-logservice:latest
.
$ docker-compose up -d
The Compose orchestration will launch three MetadataServer containers and three
Worker containers, all on the same Docker network. The -d
option detaches the
container logs from your current shell.
$ ./client-env.sh
$ ./bin/shell <...>
$ ./bin/load-test <...>
The client-env.sh
script will launch a Docker container which is on the same
network as our cluster running in Compose.
Use docker logs
to inspect the output from a specific container. You must pass
the name of the container (obtained via docker-compose ps
or docker ps
) to
docker logs
.
You can also “attach” to a container via docker exec
to inspect the environment
in which the process is running. Again, using the name of a container obtained as
described above, use docker exec -it <name> /bin/sh
to attach to the container.