Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Objective


Learn how to set up a machine on Rackspace to deploy a SOAJS cloud on it.


Steps


  1. Create an account on Rackspace
  2. Create a machine
    1. Specify which image to use and which flavor
    2. Save the provided password
  3. Connect to the Machine using the saved password 
  4. Download the pre-requisites, the installer & run the Installer pre script on Rackspace Machine



Step 1: Create an account on Rackspace


  • Begin by Creating a Rackspace account →  Click Here.
    • Follow the steps of Rackspace wizard



Step 2: Create a machine


  • Click on Servers → Create Resources → Cloud servers
  • Specify the machine image type, OS and version: Linux - Ubuntu - 16.04 LTS(Xenial Xerus)
  • Specify the flavor: 7.5 GB Compute v1
  • Click Create Server
  • Save the password to use it for establishing the connection
  • Wait till the server gets ready
  • Use the ssh to log into your server


Create the machine



Running machine




Step 3: Connect to the Machine on your Local Machine


Code Block
languagebash
themeMidnight
titleConnect to the Machine
linenumberstrue
# connect to the machine using the IP address and the saved password
> ssh root@machine-Ip-address




Step 4: Download the pre-requisites, the installer & run the Installer pre script on Rackspace Machine


Once you SSH to the machine, you can download and run the installer pre installation script to get all the dependencies so that cloud deployment works.

Prepare the machine

Code Block
languagebash
themeMidnight
titleDownload & Run SOAJS Installer pre scripts
linenumberstrue
# download update apt-get, npm and zip
> sudo su
> apt-get update && apt-get -y upgrade
> apt-get install npm
> apt-get install zip

# download the latest version of nodejs
> curl -sL https://deb.nodesource.com/setup_6.x | bash && apt-get install -y nodejs


Code Block
themeMidnight
titleConfigure the firewall rules
linenumberstrue
> ufw default deny
> ufw allow ssh/tcp
> ufw allow 30080/tcp
> ufw allow 2376/tcp
> ufw allow 2377/tcp
> ufw allow 32017/tcp
> ufw --force enable

Download Docker Certificates

Zip and Download the generated docker certificates from the above step to your local machine.

Code Block
languagebash
themeMidnight
titlezip certificates
linenumberstrue
> cd ~
> zip -r certs.zip certs/*
> mv ~/certs.zip /home/ubuntu/


Note

From here on, use the installer from your local machine to deploy SOAJS on the remote machine you created.