Arth Task 7.2

 7.2: Docker Task

● Configuring HTTPD Server on Docker Container

● Setting up Python Interpreter and running Python Code on Docker

 Container


INSTALLING HTTPD USING YUM
[root@localhost ~]# docker start -i myos
[root@3f22d029a254 /]# yum install httpd
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:01:59 ago on Tue Nov 3 11:57:00 2020.
Dependencies resolved.
========================================================================
Package Arch Version Repo Size
========================================================================
Installing:
httpd x86_64 2.4.37-21.module_el8.2.0+494+1df74eae AppStream 1.7 M
Installing dependencies:
apr x86_64 1.6.3-9.el8 AppStream 125 k
apr-util x86_64 1.6.1-6.el8 AppStream 105 k
brotli x86_64 1.0.6-1.el8 BaseOS 323 k
centos-logos-httpd
noarch 80.5-2.el8 BaseOS 24 k
httpd-filesystem noarch 2.4.37-21.module_el8.2.0+494+1df74eae AppStream 36 k
httpd-tools x86_64 2.4.37-21.module_el8.2.0+494+1df74eae AppStream 103 k
mailcap noarch 2.1.48-3.el8 BaseOS 39 k
mod_http2 x86_64 1.11.3-3.module_el8.2.0+486+c01050f0.1 AppStream 156 k
Installing weak dependencies:
apr-util-bdb x86_64 1.6.1-6.el8 AppStream 25 k
apr-util-openssl x86_64 1.6.1-6.el8 AppStream 27 k
Enabling module streams:
httpd 2.4
Transaction Summary
========================================================================
Install 11 Packages
Total download size: 2.6 M
Installed size: 7.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/11): apr-util-bdb-1.6.1-6.el8.x86_64.rpm 45 kB/s | 25 kB 00:00
(2/11): apr-util-openssl-1.6.1-6.el8.x86_64.rpm 297 kB/s | 27 kB 00:00
(3/11): apr-util-1.6.1-6.el8.x86_64.rpm 102 kB/s | 105 kB 00:01
(4/11): apr-1.6.3-9.el8.x86_64.rpm 91 kB/s | 125 kB 00:01
(5/11): httpd-filesystem-2.4.37-21.module_el8.2 27 kB/s | 36 kB 00:01
(6/11): httpd-tools-2.4.37-21.module_el8.2.0+49 101 kB/s | 103 kB 00:01
(7/11): mod_http2-1.11.3-3.module_el8.2.0+486+c 167 kB/s | 156 kB 00:00
(8/11): brotli-1.0.6-1.el8.x86_64.rpm 331 kB/s | 323 kB 00:00
(9/11): mailcap-2.1.48-3.el8.noarch.rpm 50 kB/s | 39 kB 00:00
(10/11): centos-logos-httpd-80.5-2.el8.noarch.r 24 kB/s | 24 kB 00:00
(11/11): httpd-2.4.37-21.module_el8.2.0+494+1df 243 kB/s | 1.7 MB 00:07
--------------------------------------------------------------------------------
Total 270 kB/s | 2.6 MB 00:09
warning: /var/cache/dnf/AppStream-02e86d1c976ab532/packages/apr-1.6.3-9.el8.x86_
64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS-8 - AppStream 1.6 MB/s | 1.6 kB 00:00
Importing GPG key 0x8483C65D:
Userid : "CentOS (CentOS Official Signing Key) <security@centos.org>"
Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : apr-1.6.3-9.el8.x86_64 1/11
Running scriptlet: apr-1.6.3-9.el8.x86_64 1/11
Installing : apr-util-bdb-1.6.1-6.el8.x86_64 2/11
Installing : apr-util-openssl-1.6.1-6.el8.x86_64 3/11
Installing : apr-util-1.6.1-6.el8.x86_64 4/11
Running scriptlet: apr-util-1.6.1-6.el8.x86_64 4/11
Installing : httpd-tools-2.4.37-21.module_el8.2.0+494+1df74eae. 5/11
Installing : mailcap-2.1.48-3.el8.noarch 6/11
Installing : centos-logos-httpd-80.5-2.el8.noarch 7/11
Installing : brotli-1.0.6-1.el8.x86_64 8/11
Running scriptlet: httpd-filesystem-2.4.37-21.module_el8.2.0+494+1df7 9/11
Installing : httpd-filesystem-2.4.37-21.module_el8.2.0+494+1df7 9/11
Installing : mod_http2-1.11.3-3.module_el8.2.0+486+c01050f0.1.x 10/11
Installing : httpd-2.4.37-21.module_el8.2.0+494+1df74eae.x86_64 11/11
Running scriptlet: httpd-2.4.37-21.module_el8.2.0+494+1df74eae.x86_64 11/11
Verifying : apr-1.6.3-9.el8.x86_64 1/11
Verifying : apr-util-1.6.1-6.el8.x86_64 2/11
Verifying : apr-util-bdb-1.6.1-6.el8.x86_64 3/11
Verifying : apr-util-openssl-1.6.1-6.el8.x86_64 4/11
Verifying : httpd-2.4.37-21.module_el8.2.0+494+1df74eae.x86_64 5/11
Verifying : httpd-filesystem-2.4.37-21.module_el8.2.0+494+1df7 6/11
Verifying : httpd-tools-2.4.37-21.module_el8.2.0+494+1df74eae. 7/11
Verifying : mod_http2-1.11.3-3.module_el8.2.0+486+c01050f0.1.x 8/11
Verifying : brotli-1.0.6-1.el8.x86_64 9/11
Verifying : centos-logos-httpd-80.5-2.el8.noarch 10/11
Verifying : mailcap-2.1.48-3.el8.noarch 11/11
Installed:
apr-1.6.3-9.el8.x86_64
apr-util-1.6.1-6.el8.x86_64
apr-util-bdb-1.6.1-6.el8.x86_64
apr-util-openssl-1.6.1-6.el8.x86_64
brotli-1.0.6-1.el8.x86_64
centos-logos-httpd-80.5-2.el8.noarch
httpd-2.4.37-21.module_el8.2.0+494+1df74eae.x86_64
httpd-filesystem-2.4.37-21.module_el8.2.0+494+1df74eae.noarch
httpd-tools-2.4.37-21.module_el8.2.0+494+1df74eae.x86_64
mailcap-2.1.48-3.el8.noarch
mod_http2-1.11.3-3.module_el8.2.0+486+c01050f0.1.x86_64
Complete!
[root@3f22d029a254 /]#



A) STARTING HTTPD SERVICE :-

[root@3f22d029a254 /]# usr/sbin/httpd
AH00558: httpd: Could not reliably determine the server's fully qualified domain name,
using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message



7.2 B) INSTALLING NET-TOOLS 

[root@3f22d029a254 html]# yum install net-tools
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:03:31 ago on Tue Nov 3 12:32:55 2020.
Dependencies resolved.
========================================================================
Package Architecture Version
Repository Size
========================================================================
Installing:
net-tools x86_64 2.0-0.51.20160912git.el8
BaseOS 323 k
Transaction Summary
========================================================================
Install 1 Package
Total download size: 323 k
Installed size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
net-tools-2.0-0.51.20160912git.el8.x86_64.rpm
150 kB/s | 323 kB 00:02
-------------------------------------------------------------------------------------------------------------------------
Total
106 kB/s | 323 kB 00:03
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing :
1/1
Installing : net-tools-2.0-0.51.20160912git.el8.x86_64
1/1
Running scriptlet: net-tools-2.0-0.51.20160912git.el8.x86_64
1/1
Verifying : net-tools-2.0-0.51.20160912git.el8.x86_64
1/1
Installed:
net-tools-2.0-0.51.20160912git.el8.x86_64
Complete!


That's all for today thankyou guys for your patient reading meet you next time with another blog on some technical topic and till then have fun keep learning and keep sharing. Have a nice day ahead.


Comments

Popular posts from this blog

Docker with Ansible

Summer Task 7 - (07.2 )

HAPORXY