Addressing comments

- support public_network for vagrant box
- using python3-5 for centos based installations
- Revisiting docs.
  - More changes will be incorporated in another PR.
- Parameterize MongoDB host mount path for docker deployments
This commit is contained in:
muawiakh 2017-09-18 15:59:49 +02:00
parent f2e1b4ac80
commit 4235618522
10 changed files with 32 additions and 22 deletions

View File

@ -22,7 +22,6 @@ Note that there are a few kinds of nodes:
There are some old RethinkDB-based deployment instructions as well: There are some old RethinkDB-based deployment instructions as well:
* [Deploy a bare-bones RethinkDB-based node on Azure](appendices/azure-quickstart-template.html) * [Deploy a bare-bones RethinkDB-based node on Azure](appendices/azure-quickstart-template.html)
* [Deploy a bare-bones RethinkDB-based node on any Ubuntu machine with Ansible](appendices/template-ansible.html)
* [Deploy a RethinkDB-based testing cluster on AWS](appendices/aws-testing-cluster.html) * [Deploy a RethinkDB-based testing cluster on AWS](appendices/aws-testing-cluster.html)
Instructions for setting up a client will be provided once there's a public test net. Instructions for setting up a client will be provided once there's a public test net.

View File

@ -1,12 +1,6 @@
# Quickstart # Quickstart
This page has instructions to set up a single stand-alone BigchainDB node manually for learning or experimenting. Instructions for other cases are [elsewhere](introduction.html). You might try one of the following deployment methods This page has instructions to set up a single stand-alone BigchainDB node for learning or experimenting. Instructions for other cases are [elsewhere](introduction.html). We will assume you're using Ubuntu 16.04 or similar. If you're not using Linux, then you might try [running BigchainDB with Docker](appendices/run-with-docker.html).
as well, depending on your choice:
- [BigchainDB with Docker](appendices/run-with-docker.html).
- [BigchainDB with Vagrant](appendices/run-with-vagrant.html).
- [BigchainDB with Ansible](appendices/run-with-ansible.html).
For manual installation, We will assume you're using Ubuntu 16.04 or similar.
A. Install MongoDB as the database backend. (There are other options but you can ignore them for now.) A. Install MongoDB as the database backend. (There are other options but you can ignore them for now.)

8
pkg/Vagrantfile vendored
View File

@ -33,7 +33,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end end
end end
bdb.vm.hostname = instance["name"] bdb.vm.hostname = instance["name"]
bdb.vm.network instance["network"]["type"], ip: instance["network"]["ip"] if instance["network"]["type"] == "private_network"
bdb.vm.network instance["network"]["type"], ip: instance["network"]["ip"]
elsif instance["network"]["type"] == "public_network"
bdb.vm.network instance["network"]["type"], use_dhcp_assigned_default_route: true, bridge: instance["network"]["bridge"]
else
raise "Invalid network type: Please specify one of the following: [private_network, public_network]"
end
bdb.vm.box = instance["box"]["name"] bdb.vm.box = instance["box"]["name"]
bdb.vm.synced_folder ".", "/bigchaindb" bdb.vm.synced_folder ".", "/bigchaindb"
bdb.vm.provision :shell, inline: "cd /bigchaindb/scripts;/bin/bash #{instance["upstart"]}" bdb.vm.provision :shell, inline: "cd /bigchaindb/scripts;/bin/bash #{instance["upstart"]}"

View File

@ -8,10 +8,10 @@ dependencies_deb:
dependencies_yum: dependencies_yum:
- gcc-c++ - gcc-c++
- "@Development Tools" - "@Development Tools"
- python34-devel - python35u-devel
- libffi-devel - libffi-devel
- openssl-devel - openssl-devel
- python34-setuptools - python35u-setuptools
dependencies_dnf: dependencies_dnf:
- gcc-c++ - gcc-c++
@ -20,6 +20,7 @@ dependencies_dnf:
- python3-devel - python3-devel
- libffi-devel - libffi-devel
- openssl-devel - openssl-devel
- python3-pip
python_pip_upgrade: true python_pip_upgrade: true
python_setuptools_upgrade: true python_setuptools_upgrade: true

View File

@ -8,5 +8,5 @@
tags: [bigchaindb-driver] tags: [bigchaindb-driver]
- name: Install pip - name: Install pip
shell: "easy_install-3.4 pip" shell: "easy_install-3.5 pip"
tags: [bigchaindb-driver] tags: [bigchaindb-driver]

View File

@ -10,10 +10,10 @@ dependencies_deb:
dependencies_yum: dependencies_yum:
- gcc-c++ - gcc-c++
- "@Development Tools" - "@Development Tools"
- python34-devel - python35u-devel
- libffi-devel - libffi-devel
- openssl-devel - openssl-devel
- python34-setuptools - python35u-setuptools
dependencies_dnf: dependencies_dnf:
- gcc-c++ - gcc-c++
@ -22,6 +22,7 @@ dependencies_dnf:
- python3-devel - python3-devel
- libffi-devel - libffi-devel
- openssl-devel - openssl-devel
- python3-pip
python_pip_upgrade: true python_pip_upgrade: true
python_setuptools_upgrade: true python_setuptools_upgrade: true

View File

@ -14,3 +14,7 @@
update_cache: yes update_cache: yes
with_items: "{{ dependencies_yum }}" with_items: "{{ dependencies_yum }}"
tags: [bigchaindb] tags: [bigchaindb]
- name: Install pip
shell: "easy_install-3.5 pip"
tags: [bigchaindb-driver]

View File

@ -14,7 +14,7 @@ mongodb_yum_base_url: "https://repo.mongodb.org/yum/{{ ansible_os_family|lower }
mongodb_dnf_base_url: "https://repo.mongodb.org/yum/{{ ansible_os_family|lower }}/7/{{ mongodb_package }}/{{ mongodb_version }}/{{ ansible_architecture }}" mongodb_dnf_base_url: "https://repo.mongodb.org/yum/{{ ansible_os_family|lower }}/7/{{ mongodb_package }}/{{ mongodb_version }}/{{ ansible_architecture }}"
# MongoDB running config # MongoDB running config
mongodb_storage_path: /data/db mongodb_storage_path: /data/db/main
mongodb_log_path: /var/log/mongodb mongodb_log_path: /var/log/mongodb
mongodb_config_path: /data/configdb mongodb_config_path: /data/configdb
se_linux: "TODO: (muawiakh)" se_linux: "TODO: (muawiakh)"
@ -25,10 +25,12 @@ directories:
# Docker configuration # Docker configuration
mongodb_default_port: 27017 mongodb_default_port: 27017
mongodb_docker_image: "mongo:3.4.1" mongodb_docker_image: "mongo:3.4.4"
mongodb_docker_name: "mongodb" mongodb_docker_name: "mongodb"
mongodb_docker_published_ports: mongodb_docker_published_ports:
- 172.17.0.1:27017:27017 - 172.17.0.1:27017:27017
mongodb_host_mount_dir_db: /tmp/mongodb_docker/db
mongodb_host_mount_dir_config: /tmp/mongodb_docker/configdb
mongodb_docker_volumes: mongodb_docker_volumes:
- "/tmp/mongodb_docker/db:{{ mongodb_storage_path }}" - "{{ mongodb_host_mount_dir_db }}:{{ mongodb_storage_path }}"
- "/tmp/mongodb_docker/configdb:{{ mongodb_config_path }}" - "{{ mongodb_host_mount_dir_config }}:{{ mongodb_config_path }}"

View File

@ -8,5 +8,7 @@
deploy_docker: true # [true, false] deploy_docker: true # [true, false]
network: network:
ip: "10.20.30.50" ip: "10.20.30.50"
type: "private_network" # Currently, only private network is supported. type: "private_network"
# Active network interface on host, Only required for public network e.g "en0: Wi-Fi (AirPort)"
bridge: "<network-interface-host>"
upstart: "/bigchaindb/scripts/bootstrap.sh" # Path to upstart script upstart: "/bigchaindb/scripts/bootstrap.sh" # Path to upstart script

View File

@ -79,6 +79,7 @@ install_deps_deb() {
install_deps_centos() { install_deps_centos() {
echo "Installing Dependencies..." echo "Installing Dependencies..."
yum install epel-release -y yum install epel-release -y
yum install -y https://centos7.iuscommunity.org/ius-release.rpm
yum install ansible -y yum install ansible -y
} }
install_deps_fedora() { install_deps_fedora() {