1. Ecosystem Docker Run

1.1. Jenkins

docker network create ecosystem
mkdir -p /home/jenkins
chmod 777 /home/jenkins
chmod 777 /var/run/docker.sock

docker run \
    --name jenkins \
    --detach \
    --rm \
    --volume /home/jenkins:/var/jenkins_home \
    --volume /var/run/docker.sock:/var/run/docker.sock \
    --net ecosystem \
    --publish 8100:8080 \
    jenkins/jenkins

1.2. SonarQube

docker network create ecosystem
mkdir -p /home/sonarqube/
chmod 777 /home/sonarqube

docker run \
    --name sonarqube \
    --detach \
    --rm \
    --volume /home/sonarqube/conf:/opt/sonarqube/conf \
    --volume /home/sonarqube/data:/opt/sonarqube/data \
    --volume /home/sonarqube/logs:/opt/sonarqube/logs \
    --volume /home/sonarqube/extensions:/opt/sonarqube/extensions \
    --net ecosystem \
    --publish 8200:9000 \
    sonarqube

1.3. Artifactory

docker network create ecosystem
mkdir -p /home/artifactory
chmod 777 /home/artifactory

docker run \
    --name artifactory \
    --detach \
    --rm \
    --volume /home/artifactory:/var/opt/jfrog/artifactory \
    --network ecosystem \
    --publish 8300:8081 \
    docker.bintray.io/jfrog/artifactory-oss:latest

1.4. GitLab

Warning

Machine must have at least 8 GB RAM, otherwise freezes. Amazon t2.micro is not good.

docker network create ecosystem
mkdir -p /home/gitlab
chmod 777 /home/gitlab

docker run \
    --name gitlab \
    --detach \
    --rm \
    --volume /home/gitlab/config:/etc/gitlab \
    --volume /home/gitlab/logs:/var/log/gitlab \
    --volume /home/gitlab/data:/var/opt/gitlab \
    --network ecosystem \
    --publish 8422:22 \
    --publish 8480:80 \
    --publish 8443:443 \
    gitlab/gitlab-ce:latest