Skip to content

Material do ambiente do curso de Integração e Entrega Continua com Git, Jenkins, Nexus e Sonar

Notifications You must be signed in to change notification settings

murilomentor/CICD-Lab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

CICD

Iniciando ambiente com maquina repo

Maquina Host

vagrant up scm --provision

Instalando Gitlab na maquina SCM

Instalando Gitlab-CE

[root@scm ~]# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
[root@scm ~]# yum install -y gitlab-ce

Configurando Gitlab-CE

# vim /etc/gitlab/gitlab.rb

external_url 'http://192.168.88.10'
alertmanager['enable'] = false
gitlab_monitor['enable'] = false
node_exporter['enable'] = false
postgres_exporter['enable'] = false
prometheus['enable'] = false
redis_exporter['enable'] = false

Carregando novas configurações

# gitlab-ctl reconfigure

Com Gitlab-CE instalado e configurado podemos acessa-lo plo endereço http://192.168.88.10.

Maquina Pipeline

Iniciando maquina pipeline

Iniciando a maquina pipeline via vagrant.

$ vagrant up pipeline --provision

Instalando serviços na maquina pipeline

Instalando Jenkins

# curl http://pkg.jenkins-ci.org/redhat/jenkins.repo -o /etc/yum.repos.d/jenkins.repo
# rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
# yum install jenkins git java-1.8.0-openjdk -y
# systemctl enable jenkins
# systemctl start jenkins

Instalando Docker na maquina pipeline

# yum install -y yum-utils device-mapper-persistent-data lvm2
# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# yum install -y docker-ce docker-ce-cli containerd.io
# systemctl enable docker
# systemctl start docker

Rodando SonarQube no Docker

# docker run -dti --name sonarqube --restart always -p 9000:9000 sonarqube

Rodando SonatypeNexus OSS no Docker

# docker run -dti --name nexus --restart always -p 8081:8081 sonatype/nexus3

About

Material do ambiente do curso de Integração e Entrega Continua com Git, Jenkins, Nexus e Sonar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published