File List
Not logged in

The union of all files from all check-ins in directory wiki_references/2017/software/MaidSafe_net/src_from_GitHub/the_repository_clones/QA/droplet_deployer   [history]


droplet_deployer

Simple nodejs tool to build and deploy SAFE network binaries to DigitalOcean droplets for tests

Limitation

Linux only (DigitalOcean only supports Linux)

Prerequisite

Nodejs should be installed. The minimum version is 8.11.3.

Linux:

sudo apt-get install nodejs npm
sudo ln -s `which nodejs` /usr/bin/node

To build the nodes, libsodium is also required. Follow the instructions here to link it statically.

Setting up

run npm install

Usage

npm start - Follow the default flow of the tool as listed here grunt test - Run lint checks.

Configs

There is config.json file which allows you to tweek somer of the droplet deployer parameters.

  "providerDetails": {
    "digitalOcean": {
      "snapshotId": "37206537",
      "concentratedRegion": "lon1",
      "size": "s-1vcpu-2gb"
    }
  }
  "providerDetails": {
    "digitalOcean": {
      "freshInstall": true,
      "snapshotId": "37206537",
      "concentratedRegion": "lon1",
      "size": "s-1vcpu-2gb"
    }
  }

TODO

At present the droplet list from digitalocean fetches maximum of 500 droplets only. Implement proper pagination based on the meta data