Public Repository

Last pushed: 8 months ago
Short Description
SonarQube powered by ansible procedures behalf git/github/bitbuclet/others repos
Full Description

You can define your playbook in a repo and pass to docker information to play the Ansible code.

Environment:
MAIN_REPO_URL='git@.......git'
MAIN_REPO_BRANCH=branch|master
MAIN_REPO_FOLDER=folder
ROLES_REPO_URL='git@.........git' \
ROLES_REPO_BRANCH=branch|master
ROLES_REPO_FOLDER=folder
PLAYBOOKS=relative yml files from master folder comma separated
USER_NAME=git-username
USER_EMAIL=git email
ANSIBLE_HOSTNAME=ansible name
HOSTNAME=machine name
RIGLETDOMAIN=macine domain
POSTSTART_SONARQUBE=Flag defines if SonarQube has to start after the ansible procedure (default: "false")
PRESTART_SONARQUBE_IF_UP_POST_ANSIBLE= Flag allows to restartSonarQube after ansible also if it is running (default)
PRESTART_SONARQUBE=Flag defines if SonarQube has to start before the ansible procedure (default: "true")
RESTART_SONARQUBE_AFTER_ANSIBLE=Flag defines if SonarQube has to restart after the ansible procedure (default: "false")
PRIVATE_PUBLIC_KEY_TAR_URL=url to your tar, no ssl credentials are provided to wget
SONARQUBE_JDBC_USERNAME=user name for the nexus database
SONARQUBE_JDBC_PASSWORD=user password for the nexus database
SONARQUBE_JDBC_URL=jdbc connection URL (provided drivers: postgresql, mssql, mysql, h2]
SONARQUBE_WEB_JVM_OPTS=SonarQube JVM options
SONARQUBE_ANSIBLE_DEFINED_CONTEXT_PATH=WebApp context path of sonar after the ansible playbooks e.g. : /sonar (default: "")

We suppose you have three environment files in the master folder : vars, inputs and private. They are mandatory and they must be at least filled of one variable each.

Reference Repository:

https://github.com/fabriziotorelli-wipro/rig-docker-machines/tree/master/2/ansible-machines

Example:
docker run -d -p 8080:8081 --privileged -e "PRIVATE_PUBLIC_KEY_TAR_URL=https://github.com/f..../keys.tar" -e .... -e ....... -e "container=docker" --cap-add SYS_ADMIN --security-opt seccomp:unconfined -v /sys/fs/cgroup:/sys/fs/cgroup -it --name my-nexus-ansible builditftorelli/sonarqube-ansible:x.xxx.xx

Docker Pull Command
Owner
builditftorelli