Giter VIP home page Giter VIP logo

fbrevival's Introduction

FB Revival

Steps to rise up a mirror of FruitBreedomics (FB) site

Set up your environment variables

Please set your environment in order that scripts could work:

export DIGITALOCEAN_ACCESS_TOKEN=<your DO token>

Create a droplet on Digital Ocean (DO)

Create a new droplet using:

$ python scripts/create_droplet.py

NB: time is needed to start-up a droplet and to add firewalls, volumes, etc. the script will exit if it can't perform a particoular action. Recall the script after the droplet is started to add additional configuration staff (the script make no changes if they currently applied on the droplet)

Update hosts file

Set the current droplet IP address in hosts file:

[fruitbreedomics]
centos7     ansible_host=fb.paolocozzi.cloud

Install all the roles:

$ ansible-playbook site.yml

The openvz_role was inspired from here

Create a new container

Ensure a container is not present:

# vzlist -a 101
Container not found

create a new container with

$ vzctl create 100 --ostemplate centos-6-x86_64
$ vzctl set 100 --ipadd 192.168.0.100 --save
$ vzctl set 100 --nameserver 8.8.8.8 --save
$ vzctl set 100 --hostname server100.mydomain.com --save

Modify memory used:

$ vzctl set 109 --ram 1024M --save

Start the container and enter into it

$ vzctl start 100
$ vzctl enter 100

More info on basic operations could be found here and here. Info on OpenVZ. Info on container NAT Info on changing memory here and here Info on iptables

WARNING: Not applied! Info on DHCP and Virtual Ethernet device

Restoring FB machine:

$ vzdump --restore /mnt/fb_volume/fruitbreedomics/vzdump-openvz-109-2019_06_12-22_10_52.tar.gz 109
$ vzctl set 109 --netif_del eth0 --save
$ vzctl set 109 --ipadd 192.168.0.109 --save
$ vzctl start 109

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.