4.2 KiB
Azure Quickstart Template
If you didn't read the introduction to the cloud deployment starter templates, please do that now. The main point is that they're not for deploying a production node; they can be used as a starting point.
Note: There was an Azure quickstart template in the blockchain
directory of Microsoft's Azure/azure-quickstart-templates
repository on GitHub. It's gone now; it was replaced by the one described here.
One can deploy a BigchainDB node on Azure using the template in the bigchaindb-on-ubuntu
directory of Microsoft's Azure/azure-quickstart-templates
repository on GitHub. Here's how:
-
Go to that directory on GitHub.
-
Click the button labelled Deploy to Azure.
-
If you're not already logged in to Microsoft Azure, then you'll be prompted to login. If you don't have an account, then you'll have to create one.
-
Once you are logged in to the Microsoft Azure Portal, you should be taken to a form titled BigchainDB. Some notes to help with filling in that form are available below.
-
Deployment takes a few minutes. You can follow the notifications by clicking the bell icon at the top of the screen. At the time of writing, the final deployment operation (running the
init.sh
script) was failing. We will fix that, but for now, just follow these instructions and we'll update them once that's fixed. -
Find out the public IP address of the virtual machine in the Azure Portal. Example:
40.69.87.250
-
ssh in to the virtual machine at that IP address, i.e. do
ssh <Admin_username>@<machine-ip>
where<Admin_username>
is the admin username you entered into the form and<machine-ip>
is the virtual machine IP address determined in the last step. Example:ssh bcdbadmin@40.69.87.250
-
You should be prompted for a password. Give the
<Admin_password>
you entered into the form. -
Go to the
init.sh
script at https://github.com/Azure/azure-quickstart-templates/blob/master/bigchaindb-on-ubuntu/scripts/init.sh -
Manually run all the commands in that
init.sh
script except for sudo easy_install3 pip. This will install RethinkDB, run RethinkDB, and install BigchainDB Server. -
Configure BigchainDB Server using the default BigchainDB settings:
bigchaindb -y configure
-
Run BigchainDB Server:
bigchaindb start
BigchainDB Server should now be running on the Azure virtual machine.
Remember to shut everything down when you're done (via the Azure Portal), because it generally costs money to run stuff on Azure.
Notes on the Blockchain Template Form Fields
BASICS
Resource group - You can use an existing resource group (if you have one) or create a new one named whatever you like, but avoid using fancy characters in the name because Azure might have problems if you do.
Location is the Microsoft Azure data center where you want the BigchainDB node to run. Pick one close to where you are located.
SETTINGS
You can use whatever Admin_username and Admin_password you like (provided you don't get too fancy). It will complain if your password is too simple. You'll need these later to ssh
into the virtual machine.
Dns_label_prefix - Once your virtual machine is deployed, it will have a public IP address and a DNS name (hostname) something like <DNSprefix>.northeurope.cloudapp.azure.com
. The <DNSprefix>
will be whatever you enter into this field.
Virtual_machine_size - This should be one of Azure's standard virtual machine sizes, such as Standard_D1_v2
. There's a list of virtual machine sizes in the Azure docs.
_artifacts Location - Leave this alone.
_artifacts Location Sas Token - Leave this alone (blank).
TERMS AND CONDITIONS
Read the terms and conditions. If you agree to them, then check the checkbox.
Finally, click the button labelled Purchase. (Generally speaking, it costs money to run stuff on Azure.)