Installing Prerequisites

Here are the docker tools that are pre-requisites for Shine:

  • Docker Engine

  • Docker Machine

Install docker engine

This https://docs.docker.com/engine/install/arrow-up-right has all the details and steps to install docker on any operating system.

Command to install docker on Linux OS:

sudo apt-get update
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

Install docker machine

Follow this link to install the docker machine - https://docs.docker.com/machine/install-machine/arrow-up-right.

Command to install on the linux operating system:

Driver for the docker

Depending on where the code is going to be deployed - physical machine or cloud server, drivers as below have to be installed.

Physical Machine:

To deploy the code on a physical machine, we will need a virtual-box driver as shown in this link - https://www.virtualbox.org/wiki/Downloadsarrow-up-right. This link has all the relevant details to install the virtual-box on all operating systems.

Installation on a linux based OS:

Cloud Server:

Depending one which cloud platform is going to be used, we have to install the relevant driver for the same. Find below all cloud platforms that are currently supported:

For this tutorial we will go with google cloud, however the tutorial remains very similar for other platforms.

Google Compute Engine

The Google driver uses Application Default Credentialsarrow-up-right to get authorization credentials for calling Google APIs.

If docker-machine is used from a GCE host, authentication occurs automatically via the built-in service account. Otherwise, install gcloudarrow-up-right and get through the oauth2 process with gcloud auth login.

If installation doesn't work, manually download the credentials.json file to the local, and set the GOOGLE_APPLICATION_CREDENTIALS environment variable point to its location, such as:

Once the above setup is done we will need to modify our application deployment scripts.

Last updated