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/ 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/.
Command to install on the linux operating system:
curl -L https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine &&
chmod +x /tmp/docker-machine &&
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine
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/Downloads. This link has all the relevant details to install the virtual-box on all operating systems.
Installation on a linux based OS:
sudo apt-get update
sudo apt-get install virtualbox-6.1
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 Credentials 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 gcloud 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:
export GOOGLE_APPLICATION_CREDENTIALS=$HOME/gce-credentials.json
Once the above setup is done we will need to modify our application deployment scripts.
Last updated
Was this helpful?