Created
April 22, 2022 03:14
-
-
Save ingmarioalberto/d8481feefd7f1a860d11a935dcf08c8d to your computer and use it in GitHub Desktop.
Instalación Jenkins-Gitlab RHEL7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*Instalación en google cloud, imágen con Centos 7 on 20GB HD, 3.75GB RAM, 1vCPU | |
sudo yum -y update | |
sudo yum install -y curl policycoreutils-python openssh-server wget | |
sudo firewall-cmd --zone=public --permanent --add-service=http | |
success | |
sudo firewall-cmd --zone=public --permanent --add-service=https | |
success | |
sudo firewall-cmd --zone=public --permanent --list-all | |
target: default | |
icmp-block-inversion: no | |
interfaces: | |
sources: | |
services: dhcpv6-client http https ssh | |
ports: | |
protocols: | |
masquerade: no | |
forward-ports: | |
source-ports: | |
icmp-blocks: | |
rich rules: | |
sudo firewall-cmd --reload | |
sudo yum install -y postfix | |
sudo systemctl start postfix | |
sudo systemctl enable postfix | |
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash | |
sudo EXTERNAL_URL="https://gitlab.mapapulque.ro" yum install -y gitlab-ce | |
... | |
Thank you for installing GitLab! | |
GitLab should be available at https://gitlab.mapapulque.ro | |
For a comprehensive list of configuration options please see the Omnibus GitLab readme | |
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md | |
Verifying : gitlab-ce-12.3.5-ce.0.el7.x86_64 1/1 | |
Installed: | |
gitlab-ce.x86_64 0:12.3.5-ce.0.el7 | |
Complete! | |
----- | |
entrar con firefox a: https://gitlab.mapapulque.ro/ | |
asignar nuevo password: bU71yXyCOI6gA | |
----------- | |
Jenkins: | |
sudo yum install java-1.8.0-openjdk-devel ; # no soporta más de java 8. | |
curl --silent --location http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | sudo tee /etc/yum.repos.d/jenkins.repo | |
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key | |
sudo yum install -y jenkins | |
sudo systemctl start jenkins | |
sudo systemctl enable jenkins | |
jenkins.service is not a native service, redirecting to /sbin/chkconfig. | |
Executing /sbin/chkconfig jenkins on | |
sudo firewall-cmd --permanent --zone=public --add-port=8080/tcp | |
success | |
sudo firewall-cmd --reload | |
success | |
---- | |
vi /etc/sysconfig/jenkins | |
>>>JENKINS_LISTEN_ADDRESS="0.0.0.0" | |
sudo systemctl restart jenkins | |
--------- | |
ir a: http://gitlab.mapapulque.ro:8080/ | |
y en la tarminal hacer: | |
sudo cat /var/lib/jenkins/secrets/initialAdminPassword | |
y colocar este password en la parte de la config de administrador del navegador | |
--- | |
jenkins pregunta si es instalacion | |
Suggested plugins vs select plugins to install | |
select plugins to install... | |
Dashboard view | |
html publisher | |
gitlab | |
active directory | |
create first admin user: admin | |
pass: bU71yXyCOI6gA (mismo que gitlab) | |
al terminar, e ir a la pagina http://gitlab.mapapulque.ro:8080/ | |
sudo yum install -y git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment