Provides a convenient way to run underlying LCMAP services locally.
- Zookeeper
- Mesos
- Marathon
- Cassandra
- Elasticsearch
- RabbitMQ
- Kafka
- Mesos-DNS
- Mesos Spark Cluster Dispatcher (for running Spark in cluster mode)
- Docker 1.13
- Docker Compose 1.10
# Some linux distros (ubuntu is one) do not export HOSTNAME by default.
# Needed to properly serve web pages from a browser on the host.
export HOSTNAME=$HOSTNAME
# start everything
docker-compose up
# start individual services (with dependencies)
docker-compose up marathon
All services which need to persist data (e.g. Cassandra, Elasticsearch, RabbitMQ, Mesos) do so in the ./volumes
directory.
If you wish to start fresh, remove the contents of ./volumes
.
All services expose ports through the host so that you can connect to them from other applications without the hassle of locating the assigned IP addresses. You may also wish to use these service with other docker containers. In such cases, you may run the docker container like this:
docker run --net=lcmap usgseros/lcmap-landsat:0.1.0-SNAPSHOT $(cat config.edn)
This container will be able to refer to other containers using the service name
as the hostname. For example, the Cassandra container will be reachable from
within another container using the host and port cassandra:9042
.
URL | Description |
---|---|
http://localhost:8080 | Marathon |
http://localhost:5050 | Mesos Master |
zk://localhost:2181 | Zookeeper |