- Docker
- Kitematic
- Brew
- Node js or
$ brew update && brew install nodejs
- PostgreSQl 9.4 or
$ brew install postgresql
- Ansible or
$ brew install ansible
- Travis cli or
$ gem install travis
- Heroku cli or
$ gem uninstall heroku
Prepare your database
brew services start postgresql
createuser -s crudtest -P
# password: crudtest
createdb -U crudtest crudtest
Run on docker console
docker pull prom/prometheus
docker pull tray/node_exporter
docker pull devopsru/delivery-pipeline-training
docker pull grafana/grafana
docker pull elasticsearch
docker pull kibana
git clone https://github.com/devops-ru/delivery-pipeline-training.git myapp
cd myapp
git submodule init && git submodule update
npm install
npm run test
npm run start
sudo docker run --name box-elastic -p 9200:9200 -d elasticsearch
sudo docker run --name=box-kibana -p 5601:5601 --link box-elastic:elasticsearch -d kibana
sudo docker run --name box-app --link box-elastic:box-elastic.docker -p 5000:5000 -p 9100:9100 -d devopsru/delivery-pipeline-training
sudo docker run --name box-prometheus -p 9090:9090 --link box-app:box-app.docker -v [REPO DIR]/steps/11-monitoring/prometheus.yml:/etc/prometheus/prometheus.yml -d prom/prometheus
sudo docker run --name box-grafana --link box-prometheus:box-prometheus.docker -p 3000:3000 -d grafana/grafana