Rackspace Docker
Objective
Learn how to set up a machine on Rackspace.
Steps
- Create an account on Rackspace
- Create a machine
- Specify which image to use and which flavor
- Save the provided password
- Connect to the Machine using the saved password
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
Connect to the Machine
# 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
Download & Run SOAJS Installer pre scripts
# 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
Configure the firewall rules
> 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.
zip certificates
> cd ~ > zip -r certs.zip certs/* > mv ~/certs.zip /home/ubuntu/
From here on, use the installer from your local machine to deploy SOAJS on the remote machine you created.