Docker-compose example configuration, with Jenkins-objectscriptquality, Postgres and sonar-objectscriptquality
version: '3'
services:
iris:
image: intersystemsdc/iris-community
networks:
- ci
ports:
- 9102:1972
- 9103:52773
command:
- -a
- iris session iris -U %SYS '##class(Security.Users).UnExpireUserPasswords("*")'
jenkins:
image: litesolutions/jenkins-objectscriptquality
ports:
- "8080:8080"
- "50000:50000"
networks:
- ci
environment:
IRIS_HOST: iris
IRIS_PORT: 1972
IRIS_WEBPORT: 52773
IRIS_USER: _SYSTEM
IRIS_PASSWORD: SYS
IRIS_NAMESPACE: USER
volumes:
- ./sonar/jenkins-data:/var/jenkins_home
sonarqube:
image: litesolutions/objectscriptquality
depends_on:
postgres:
condition: service_healthy
ports:
- 9000:9000
- 9092:9092
networks:
- ci
environment:
SONAR_JDBC_USERNAME: sonar
SONAR_JDBC_PASSWORD: sonar
SONAR_JDBC_URL: jdbc:postgresql://postgres:5432/sonar
SONAR_LANG_PATTERNS_PHP: '**/*.php'
volumes:
- ./sonar/sonarqube-data:/opt/sonarqube/data
postgres:
image: postgres:latest
environment:
POSTGRES_USER: sonar
POSTGRES_PASSWORD: sonar
POSTGRES_DB: sonar
networks:
- ci
volumes:
- ./sonar/postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
networks:
ci:
Jenkins should have access to the SonarQube to be able to run scanning for the project. To do so, create token in SonarQube, and in Jenkins go to Credentials and update predefined sonar token
To activate this plugin you have to get a Server ID. Login to your SonarQube installation. If it is the first time you log in, remember the default user is 'admin' and the default password is 'admin'. For security reasons, ensure to change the default credentials. Go to Administration > System.
Send an email with the following information to [email protected]:
Organization:
Server ID:
Environment: evaluation / production
We will generate a license before 24 hours and will notify you by email. No more action is required on your side to get the license working.
Content type
Image
Digest
sha256:1acd9e080…
Size
340.8 MB
Last updated
almost 2 years ago
docker pull litesolutions/jenkins-objectscriptquality