Giter VIP home page Giter VIP logo

cicd-lab's Introduction

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

cicd-lab's People

Contributors

jrballot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.