Material do ambiente do curso de Integração e Entrega Continua com Git, Jenkins, Nexus e Sonar
sudo vagrant up repo --provision
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.
Iniciando a maquina pipeline via vagrant.
$ vagrant up pipeline --provision
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
# 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
# docker run -dti --name sonarqube --restart always -p 9000:9000 sonarqube
# docker run -dti --name nexus --restart always -p 8081:8081 sonatype/nexus3