Docker Installation - Redhat / RHEL 7.x/8.x

Installing Entermedia's Docker on RHEL 7/8 server

Installing Docker

Redhat can use centos repository to install required Docker CE version:

sudo yum update
sudo yum install -y yum-utils
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
sudo yum install docker-ce docker-ce-cli
sudo systemctl start docker
sudo usermod -aG docker username

Check if firewall-cmd is installed

firewall-cmd --version

if it's installed you need to allow Docker's network

first we create a virtual network

sudo docker network create --subnet 172.18.0.0/16 entermedia 

Enabling network on the firewall

sudo firewall-cmd --permanent --zone=trusted --add-interface=$(ip route | grep 172.18.0.0 | cut -d " " -f 3)
sudo systemctl restart firewalld

If this didn't work

# look for dockers firewall that has 172.18.0.0
ip a 

#Add to firewall
sudo firewall-cmd --permanent --zone=trusted --add-interface=docker0
sudo systemctl restart firewalld

Install entermedia server

curl -o entermedia10-docker.sh -jL get-em10.entermediadb.org
sudo bash ./entermedia10-docker.sh mitre 100

Installing App PluginS

sudo curl -o /media/emsites/mitre/services/extensions/app-insights.zip http://dev.entermediadb.org/jenkins/job/app-insights/lastSuccessfulBuild/artifact/deploy/app-insights.zip
sudo /media/emsites/mitre/100/update-em10dev.sh