-
Notifications
You must be signed in to change notification settings - Fork 4
Finishing set up
sudo yum install docker -y
sudo service docker start
sudo yum install haproxy -y
sudo yum install git -y
git clone https://github.com/smartdevicelink/manticore.git
There is no further configuration needed here.
You need NodeJS and NPM in order to install NodeJS packages and start Manticore. Here are the instructions for installing NVM, which can easily install different versions of NodeJS for you.
# See https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-a-centos-7-server
curl -sL https://raw.githubusercontent.com/creationix/nvm/master/install.sh -o install_nvm.sh
bash install_nvm.sh
source ~/.bash_profile
Now do nvm ls-remote
to see available versions and run
nvm install <version string>
nvm use <version string>
nvm alias default <version string>
You can download it here. Here is also a script install:
#download consul-template
TEMPLATE_VERSION="0.20.0"
wget https://releases.hashicorp.com/consul-template/${TEMPLATE_VERSION}/consul-template_${TEMPLATE_VERSION}_linux_amd64.zip
unzip consul-template_${TEMPLATE_VERSION}_linux_amd64.zip
rm consul-template_${TEMPLATE_VERSION}_linux_amd64.zip
sudo mv consul-template /bin/consul-template
consul-template has the responsibility of using Consul to generate the HAProxy configuration file. You will need consul-template running on every machine with HAProxy and Manticore. The template and settings files for HAProxy can be found in the Manticore Github repository here. You should only run consul-template once the web server has started
If you're using HAProxy, you need a domain name that Manticore can use in order to set up custom external urls. This may involve using Route 53 to get a domain name. Ensure that you have a domain name you can use to point to either an Elastic Load Balancer which points to your API machine or to point to your API machine directly.