Difference between revisions of "Sregistry Install"

From Define Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
Starting form scratch we would need to install docker and docker compose.
 
Starting form scratch we would need to install docker and docker compose.
  
 +
<pre>
 
MacBook-Air-2:~ office$ ssh -i shanaldemo.pem centos@185.93.31.53
 
MacBook-Air-2:~ office$ ssh -i shanaldemo.pem centos@185.93.31.53
 
<code>
 
 
[centos@sregistry ~]$ sudo su -
 
[centos@sregistry ~]$ sudo su -
 
[root@sregistry ~]$ yum update ; reboot
 
[root@sregistry ~]$ yum update ; reboot
Line 15: Line 14:
 
[root@sregistry ~]$ yum install git nginx  
 
[root@sregistry ~]$ yum install git nginx  
 
[root@sregistry ~] yum install epel-release
 
[root@sregistry ~] yum install epel-release
</code>
+
</pre>
 
=== Install Python and PIP ===
 
=== Install Python and PIP ===
 +
<pre>
 
[root@sregistry ~]$ wget https://bootstrap.pypa.io/get-pip.py
 
[root@sregistry ~]$ wget https://bootstrap.pypa.io/get-pip.py
 
[root@sregistry ~]$ sudo /usr/bin/python get-pip.py
 
[root@sregistry ~]$ sudo /usr/bin/python get-pip.py
 
[root@sregistry ~]$ sudo pip install ipaddress
 
[root@sregistry ~]$ sudo pip install ipaddress
 
[root@sregistry ~]$ sudo pip install oauth2client
 
[root@sregistry ~]$ sudo pip install oauth2client
 
+
</pre>
=== ADD Docker and Docker compos ===
+
=== Add Docker and Docker-compose ===
 
+
<pre>
 
[root@sregistry ~]$ yum install -y yum-utils
 
[root@sregistry ~]$ yum install -y yum-utils
 
[root@sregistry ~]$ yum-config-manager    --add-repo    https://download.docker.com/linux/centos/docker-ce.repo
 
[root@sregistry ~]$ yum-config-manager    --add-repo    https://download.docker.com/linux/centos/docker-ce.repo
Line 31: Line 31:
 
[root@sregistry ~]$ service docker start
 
[root@sregistry ~]$ service docker start
 
[root@sregistry ~]# service docker status
 
[root@sregistry ~]# service docker status
 
 
Redirecting to /bin/systemctl status docker.service
 
Redirecting to /bin/systemctl status docker.service
 
● docker.service - Docker Application Container Engine
 
● docker.service - Docker Application Container Engine
Line 55: Line 54:
 
May 20 16:00:02 sregistry.novalocal dockerd[8723]: time="2020-05-20T16:00:02....
 
May 20 16:00:02 sregistry.novalocal dockerd[8723]: time="2020-05-20T16:00:02....
 
Hint: Some lines were ellipsized, use -l to show in full.
 
Hint: Some lines were ellipsized, use -l to show in full.
 
+
</pre>
 
=== Download Sregistry ===
 
=== Download Sregistry ===
 
+
<pre>
 
[centos@sregistry ~]$ git clone https://github.com/singularityhub/sregistry
 
[centos@sregistry ~]$ git clone https://github.com/singularityhub/sregistry
 
[centos@sregistry ~]$
 
[centos@sregistry ~]$
 
[centos@sregistry ~]$ yum install epel-release
 
[centos@sregistry ~]$ yum install epel-release
 +
</pre>

Revision as of 16:09, 21 May 2020

VM machine Setup

Create a Virtual machine with 4core / 8 GB and 40GB

Host Installation

Starting form scratch we would need to install docker and docker compose.

MacBook-Air-2:~ office$ ssh -i shanaldemo.pem centos@185.93.31.53
[centos@sregistry ~]$ sudo su -
[root@sregistry ~]$ yum update ; reboot
[root@sregistry ~]$ yum groupinstall "Development Tools"
[root@sregistry ~]$ yum install wget
[root@sregistry ~]$ yum install git nginx 
[root@sregistry ~] yum install epel-release

Install Python and PIP

[root@sregistry ~]$ wget https://bootstrap.pypa.io/get-pip.py
[root@sregistry ~]$ sudo /usr/bin/python get-pip.py
[root@sregistry ~]$ sudo pip install ipaddress
[root@sregistry ~]$ sudo pip install oauth2client

Add Docker and Docker-compose

[root@sregistry ~]$ yum install -y yum-utils
[root@sregistry ~]$ yum-config-manager     --add-repo     https://download.docker.com/linux/centos/docker-ce.repo
[root@sregistry ~]$ yum install docker-ce docker-ce-cli containerd.io
[root@sregistry ~]$ usermod -aG docker docker 
[root@sregistry ~]$ yum install docker-compose     
[root@sregistry ~]$ service docker start
[root@sregistry ~]# service docker status
Redirecting to /bin/systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2020-05-20 12:43:08 UTC; 1 day 3h ago
     Docs: https://docs.docker.com
 Main PID: 8723 (dockerd)
    Tasks: 29
   Memory: 162.3M
   CGroup: /system.slice/docker.service
           ├─ 8723 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/con...
           └─13050 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-po...

May 20 14:57:15 sregistry.novalocal dockerd[8723]: time="2020-05-20T14:57:15....
May 20 14:57:15 sregistry.novalocal dockerd[8723]: time="2020-05-20T14:57:15....
May 20 14:57:36 sregistry.novalocal dockerd[8723]: time="2020-05-20T14:57:36....
May 20 14:57:36 sregistry.novalocal dockerd[8723]: time="2020-05-20T14:57:36....
May 20 14:57:36 sregistry.novalocal dockerd[8723]: time="2020-05-20T14:57:36....
May 20 14:57:47 sregistry.novalocal dockerd[8723]: time="2020-05-20T14:57:47....
May 20 14:57:47 sregistry.novalocal dockerd[8723]: time="2020-05-20T14:57:47....
May 20 14:57:47 sregistry.novalocal dockerd[8723]: time="2020-05-20T14:57:47....
May 20 14:57:48 sregistry.novalocal dockerd[8723]: time="2020-05-20T14:57:48....
May 20 16:00:02 sregistry.novalocal dockerd[8723]: time="2020-05-20T16:00:02....
Hint: Some lines were ellipsized, use -l to show in full.

Download Sregistry

[centos@sregistry ~]$ git clone https://github.com/singularityhub/sregistry
[centos@sregistry ~]$
[centos@sregistry ~]$ yum install epel-release