Git Product home page Git Product logo

bootstrap-servers-bash's Introduction

Requirements

  • jq
    • sudo apt-get install -y jq

Create hourly paid vps on simplecloud.ru

$.post('/servers/add/', 'dc_id=3&vps_title=&vps_password=&pay_period=1h&disk_type=&vps_os=1&vps_os_version=221&tariff_plans=1&speed_limit_disabled=&prosto_plesk=1&add_server=1', function (response) { if (typeof response.error != 'undefined' && !response.error) { console.log("Created"); } else { console.log(response.message); } });

Another way to create hourly paid vps on simplecloud.ru

window.location.replace("/servers/add/");

console.log("start creating vps");
$('#dc_tmp').val(3); //
$('#vps_title_tmp').val(""); //
$('#pay_period_tmp').val("1h"); //
$('#os_version').val(1); //
$('#pay_period_tmp').append('<p class="virtual-os-version-list_item active">Test</p>');
$('.virtual-os-version-list_item.active').data('id', 221); // 221
$('.tarif-box.active').parent().attr('id', 1);
$('#answer-task').prop('checked', true);
prepare_add_server();
console.log("end creating vps");

Steps

  • Init your simplecloud.ru secret
    • export TOKEN=YOUR_TOKEN
  • Add your ssh key to simplecloud.ru that will be added to all created servers
  • Create a few servers via UI or as mentioned above (you should prove you identity to be able to create more than 3 vps)
  • Install docker on servers
    • commands/provisioning/install-docker.sh
  • Check that docker works on all servers if wanted to
    • commands/provisioning/check-docker.sh
  • Run service on all servers
    • commands/provisioning/run-docker-service.sh
  • Gather logs of all services
    • commands/provisioning/logs-docker-service.sh
  • Remove all servers
    • commands/provisioning/rm-allvps.sh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.