Giter VIP home page Giter VIP logo

devsecops-lab's Introduction

DevSecOps Lab

Accompanying repository for the courses on Automated Security Testing on Pluralsight. Please note that these instructions can slightly differ from the ones being shown during the courses - this repository is leading.

What is this ?

The files in this repository allow you to quickly spin up a lab, consisting of

  • Jenkins, a build and automation server
  • GitLab, a git server
  • Sonarqube, a code quality server
  • Docker registry, a Docker registry server

How to start

  • Ensure you have docker and docker-compose installed, and that you have the correct permissions to execute the binaries

    docker version
    docker-compose version
  • Clone this repository

    git clone https://github.com/PeterMosmans/devsecops-lab
    cd devsecops-lab
  • Find out the group ID of docker:

    getent group docker
  • Copy the file docker-compose.override.example.yml to docker-compose.override.yml, and ensure that the group ID is the same as your local docker group ID. In the example, the group ID is 999:

    ---
    version: "3.5"
    
    services:
      jenkins:
       user: ":999"

That's it! Now you can execute docker-compose up --detach in this directory - this will spin up the servers in the background.

By default, Jenkins will listen on port 8080 (http), Gitlab on port 80 (http) and 7722 (ssh), and Sonarqube on port 8080 (http). You can override the port numbers in docker-compose.override.yml. See the docker-compose.yml file for the correct syntax.

The default Jenkins password can be read from the jenkins container:

docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword

The default GitLab password for user root can be read from the gitlab container:

docker exec gitlab cat /etc/gitlab/initial_root_password

devsecops-lab's People

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.