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

edneiparmigiani/CICD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CICD

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

Aula00 - Apresentando ambiente com Vagrant

Aula01 - Iniciando ambiente com maquina repo

Maquina Host

sudo vagrant up repo --provision

Maquina Repo

Instalando Gitlab-CE

# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
# 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.

Aula02 - 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 -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

Languages