Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

DevOps-Drengene/DevOps-Project

Repository files navigation

DevOps-Project

Scheduled server check

Setup and run

  1. Build application:
    $ make d-build-project
  2. Run application:
    $ d-up-project
  3. Following endpoints is opened:
    • Frontend: localhost:3000
    • Custom API: localhost:5002
    • Simulator API: localhost:5001
    • Simulator API Swagger docs: localhost:5001/api-docs
    • Prometheus API: localhost:9090
    • Grafana: localhost:3001
    • Kibana: localhost:5601

Grafana admin credentials (in non-prod mode):

  • Username: admin
  • Password: admin

Kibana credentials:

  • Username: elastic
  • Password: changeme

Production URLs

  • Frontend: http://157.245.27.128:3000
  • Simulator API: http://157.245.27.128:5001
  • Grafana monitoring dashboard: http://157.245.27.128:3001
  • Kibana: http://188.166.193.149:5601

Deploy and run with Vagrant on Digital Ocean

  1. Add SSH_KEY_NAME and DIGITAL_OCEAN_TOKEN to your environment.
    $ nano ~/.bashrc #(or whatever shell you use)
    You get your SSH_KEY_NAME and DIGITAL_OCEAN_TOKEN from the settings on cloud.digitalocean.com
    export SSH_KEY_NAME="My Computer SSH"
    export DIGITAL_OCEAN_TOKEN="My Secret Key"
  2. Reload shell configuration after last install:
    $ source ~/.bashrc
  3. Install Digital Ocean plugin for Vagrant
    $ vagrant plugin install vagrant-digitalocean
  4. Deploy to Digital Ocean
    $ vagrant up

How to run flag tool

Run the following command: make run-flag-tool ARGS=<command-line arguments to tool>

How to run integration tests for simulator in Docker container:

Run the following command: make run-sim-integration-test

How to setup and run (minified) simulator in Docker container:

Run the following command: make run-min-sim-test

How to setup and run E2E test

  1. Setup and start the application as described in 'Setup and run' section.
  2. Navigate to the tests/e2e directory and run the following command to install all required dependencies: npm install
  3. In the tests/e2e directory, run the following command to start the E2E test: npm test