📁
shine
  • Introduction to the Shine Blockchain platform
  • Shine overview
  • Shine USP
  • About EOSIO
  • Consensus mechanisms
  • Shine Proof of Authority consensus
  • Data privacy
  • Scalability
  • Business details
    • Why Blockchain
    • Why another Blockchain platform
    • Applications of Shine
      • Assumptions
      • Precious metals traceability
      • Food traceability
        • Spices
        • Perishables
        • Seafood
      • Carbon footprint monitoring
  • Tools, Technologies, and Architecture
    • Docker
    • MongoDB
    • Encryption
    • Server Security
    • Server requirements
    • Architecture
    • Transaction flows
  • Protocol
    • Microservices and APIs
    • Account management
  • Shine Blockchain Setup
    • SHINE Software Installation
    • Create Private/Public key pairs
    • Start the Blockchain node
    • Deploying System Smart Contracts
    • Add Producer/Validator Nodes
    • Node Security Setup
    • Deploying Traceability Smart Contracts
  • Backend Setup
    • Installing Prerequisites
    • Starting The Application
  • Front end Setup
    • User Interface
Powered by GitBook
On this page

Was this helpful?

  1. Backend Setup

Installing Prerequisites

PreviousDeploying Traceability Smart ContractsNextStarting The Application

Last updated 4 years ago

Was this helpful?

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

  • Docker Engine

  • Docker Machine

Install docker engine

This 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

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:

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

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.

Follow this link to install the docker machine - .

To deploy the code on a physical machine, we will need a virtual-box driver as shown in this link - . This link has all the relevant details to install the virtual-box on all operating systems.

The Google driver uses 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, and get through the oauth2 process with gcloud auth login.

https://docs.docker.com/engine/install/
https://docs.docker.com/machine/install-machine/
https://www.virtualbox.org/wiki/Downloads
Amazon Web Services
Microsoft Azure
DigitalOcean
Exoscale
Generic
Google Compute Engine
Microsoft Hyper-V
OpenStack
Rackspace
IBM Softlayer
Oracle VirtualBox
VMware vCloud Air
VMware Fusion
VMware vSphere
Application Default Credentials
install gcloud