jenkins
[root@kuber ~]# sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
--2019-11-25 16:07:07-- https://pkg.jenkins.io/redhat/jenkins.repo
Resolving pkg.jenkins.io (pkg.jenkins.io)... 52.202.51.185
Connecting to pkg.jenkins.io (pkg.jenkins.io)|52.202.51.185|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71
Saving to: ‘/etc/yum.repos.d/jenkins.repo’
100%[======================================>] 71 --.-K/s in 0s
2019-11-25 16:07:08 (10.1 MB/s) - ‘/etc/yum.repos.d/jenkins.repo’ saved [71/71]
[root@kuber ~]# sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
[root@kuber ~]# yum install jenkins
Loaded plugins: fastestmirror, langpacks
--2019-11-25 16:07:07-- https://pkg.jenkins.io/redhat/jenkins.repo
Resolving pkg.jenkins.io (pkg.jenkins.io)... 52.202.51.185
Connecting to pkg.jenkins.io (pkg.jenkins.io)|52.202.51.185|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71
Saving to: ‘/etc/yum.repos.d/jenkins.repo’
100%[======================================>] 71 --.-K/s in 0s
2019-11-25 16:07:08 (10.1 MB/s) - ‘/etc/yum.repos.d/jenkins.repo’ saved [71/71]
[root@kuber ~]# sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
[root@kuber ~]# yum install jenkins
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.praction.in
* extras: mirrors.praction.in
* updates: mirrors.praction.in
jenkins | 2.9 kB 00:00
jenkins/primary_db | 135 kB 00:01
BDB2053 Freeing read locks for locker 0xbe4: 7922/140691317524288
Resolving Dependencies
--> Running transaction check
---> Package jenkins.noarch 0:2.206-1.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
jenkins noarch 2.206-1.1 jenkins 60 M
Transaction Summary
================================================================================
Install 1 Package
Total download size: 60 M
Installed size: 60 M
Is this ok [y/d/N]: y
Downloading packages:
jenkins-2.206-1.1.noarch.rpm | 60 MB 00:20
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : jenkins-2.206-1.1.noarch 1/1
Verifying : jenkins-2.206-1.1.noarch 1/1
Installed:
jenkins.noarch 0:2.206-1.1
Complete!
[root@kuber ~]# service jenkins status
● jenkins.service - LSB: Jenkins Automation Server
Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
[root@kuber ~]# service jenkins start
Starting jenkins (via systemctl): [ OK ]
[root@kuber ~]# chkconfig jenkins on
[root@kuber ~]# ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 0.0.0.0
ether 02:42:50:d3:23:c0 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.101 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::8961:8cea:862:8e15 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:ae:88:4d txqueuelen 1000 (Ethernet)
RX packets 48165 bytes 70947620 (67.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17090 bytes 1156295 (1.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@kuber ~]# /var/lib/jenkins/secrets/initialAdminPassword
bash: /var/lib/jenkins/secrets/initialAdminPassword: Permission denied
[root@kuber ~]# chmod +x /var/lib/jenkins/secrets/initialAdminPassword
[root@kuber ~]# /var/lib/jenkins/secrets/initialAdminPassword
/var/lib/jenkins/secrets/initialAdminPassword: line 1: f81590b4a69e46f7bdcf1014ee3b4c28: command not found
to solve permission denied for docker socket
[root@kuber ~]# sudo chmod 777 /var/run/docker.sock
[root@kuber ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/maven 3.3.3 baadc9c8b0ce 3 years ago 679 MB
[root@kuber ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/node 6.3 0d9089853221 3 years ago 651 MB
Comments
Post a Comment