-
Notifications
You must be signed in to change notification settings - Fork 5
Setting up the Deployment Manager
This page is a guide to quickly setup the Deployment Tool's server with Docker containers.
Pre-requisites:
- Docker
- Docker Compose
- Available ports: 8080, 8090, 5556, 5557 (can be changed)
The Deployment Tool consists of server and client components.
In a directory called manager
, download the following Docker Compose script:
wget https://raw.githubusercontent.com/cpswarm/deployment-tool/master/manager/docker-compose.yml
This script will run three containers:
- Elasticsearch: Database for the deployment manager
- Deployment Manager: the server component
- Deployment UI: a web-ui for deployment manager
Before running the script, execute the following command to create a key pair for the deployment manager:
docker run --rm -v $(pwd)/volumes/keys:/home/keys linksmart/deployment-manager -newkeypair keys/manager
This above command creates and stores the key pair in ./volumes/keys
. This path should be the same as the one set in the Docker Compose script, so any changes should be reflected in there as well.
Run the Docker Compose script. Execute this from the same directory as you executed the previous command.
docker-compose up -d
Check and make sure that all the containers are running (docker-compose ps
).
Tip: Elasticsearch may fail to start for lack of permissions. In that case, change the volume ownership:
sudo chown -R 1000:1000 volumes/elasticsearch
You should now be able to access the server at http://localhost:8080 and the UI at http://localhost:8090.