Collection of bash scripts which deploy an ArangoDB Cluster on several cloud services platforms.
Here you'll find all information you need to easily start a complete arangodb cluster. Currently we're offering fast deploy on following cloud platforms:
There will be coming more supported platforms in the future. Feel free to contact us if you have a special desire for a particular cloud service platform. In order to use the scripts, please follow the instructions listed below.
$ wget https://raw.githubusercontent.com/ArangoDB/deployment/publish/DigitalOcean_ArangoDB_Cluster.sh
$ chmod +x DigitalOcean_ArangoDB_Cluster.sh
$ export TOKEN="your_digital-ocean_token"
$ ./DigitalOcean_ArangoDB_Cluster.sh
./DigitalOcean_ArangoDB_Cluster.sh -r
To use the google bash script, you need the Google gcloud tool installed and configured. You can skip this part, if that already happened.
Install Google gcloud tool:
$ curl https://sdk.cloud.google.com | bash
and restart your shell or terminal. Then use gcloud tool for authentication:
$ gcloud auth login
... set your project-id:
$ gcloud config set project "your-project-id"
... and set your zone:
$ gcloud config set compute/zone "your-desired-zone"
Please use this command to list all available zones:
$ gcloud compute zones list
$ wget https://raw.githubusercontent.com/ArangoDB/deployment/publish/GoogleComputeEngine_ArangoDB_Cluster.sh
$ chmod 755 GoogleComputeEngine_ArangoDB_Cluster.sh
$ ./GoogleComputeEngine_ArangoDB_Cluster.sh
$ ./GoogleComputeEngine_ArangoDB_Cluster.sh -r
The script needs the awscli installed and configured. You can skip this part if your awscli tool is already installed and fully configured. Otherwise please follow these steps:
Install awscli (python and pip required):
$ sudo pip install awscli
... and configure awscli:
$ aws configure
You will be asked for:
- AWS Access Key ID
- AWS Secret Access Key
- Default region name
- Default output format (optional)
$ wget https://raw.githubusercontent.com/ArangoDB/deployment/publish/AmazonWebServices_ArangoDB_Cluster.sh
$ chmod 755 AmazonWebServices_ArangoDB_Cluster.sh
$ ./AmazonWebServices_ArangoDB_Cluster.sh
$ ./AmazonWebServices_ArangoDB_Cluster.sh -r
The script needs the azure-cli installed and configured. You can skip this part if azure-cli is already installed and fully configured. Otherwise please follow these steps:
Install npm (skip if npm already is installed):
$ sudo apt-get install nodejs-legacy
$ sudo apt-get install npm
Install azure-cli (skip if azure-cli already is installed) :
$ sudo npm install -g azure-cli
Then authorize with azure-cli (skip if azure-cli already is installed AND configured). There are two ways for authentication:
a) Login via publish settings file
$ azure account download
Then launch the browser with the given url (example: http://go.microsoft.com/fwlink/?LinkId=12345). After a successful login, a file with your credentials will be downloaded. In the next step, import the file to your azure-cli.
$ azure account import <path-to-downloaded-file> (example: /tmp/BizSpark\ Plus-5-26-2015-credentials.publishsettings)
or
b) Login via organizational account (if available)
$ azure login
$ wget https://raw.githubusercontent.com/ArangoDB/deployment/publish/Azure_ArangoDB_Cluster.sh
$ chmod 755 Azure_ArangoDB_Cluster.sh
$ ./Azure_ArangoDB_Cluster.sh
$ ./Azure_ArangoDB_Cluster.sh -r
Optionally, you can build all deployment scripts from its source on Github.
$ git clone git@github.com:arangodb/deployment.git
$ cd deployment
$ make
##Some switches to configure a few things
Use the -h parameter to get a help page. Optional prerequisites The following environment variables are used:
- SIZE : change the size/machine-type of the instance (e.g. -m t1.medium)
- NUMBER : change the count of machines to create (e.g. -n 3, the default is 3)
- OUTPUT : change the local output log folder (e.g. -d /my/directory)
Please remember that some variables may slightly differ like e.g. the size parameter. Each cloud platform service has their own naming for them. Some scripts may offer more modification (use -h to display them).
This script will use the clis authentication for each cloud service platform to deploy a number of VM instances running CoreOS. If you do not already have one, it will first create a SSH keypair for you and deploy it to your chosen cloud service platform and your ssh-agent. Once the machines are running, the script uses Docker images to start up all components of an ArangoDB cluster and link them to each other. In the end, it will print out access information.
No installation of ArangoDB is needed neither on the VM instances nor on your machine. All deployment issues are taken care of by Docker. You can simply sit back and enjoy.
The whole process will take a few minutes and will print out some status reports.