docker-sonar | offical sonarqube image now and installs | Continuous Deployment library
kandi X-RAY | docker-sonar Summary
kandi X-RAY | docker-sonar Summary
It uses the offical sonarqube image now and installs selected plugins into a data-only container. Just use docker-compose to run as normal i.e. docker-compose up -d.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docker-sonar
docker-sonar Key Features
docker-sonar Examples and Code Snippets
Community Discussions
Trending Discussions on docker-sonar
QUESTION
I've installed a local SonarQube server in Docker on my machine, using this docker-compose.yml based on this recipe. It spins up a Postgres database backend as well as SonarQube itself.
When I run analysis of a Java project through Maven, it analyzes everything except my project's JS and CSS. I get these warnings:
...ANSWER
Answered 2019-Dec-18 at 18:11- At the same level as your compose file, create a Dockerfile
QUESTION
I have a CI workflow that integrates a linting job and then a code quality job. My Linting job is a docker runner launching my eslint script from the application code. Then my code quality job is supposed to start a sonar scanner docker instance, check my code and send the reports back to my sonarqube instance.
The problem is mainly with the fact that i can't launch correctly the sonar scanner with either solutions which are :
Sonar Scanner Docker
https://github.com/newtmitch/docker-sonar-scanner
At this point, the runner runs the image but when starting its script (which is only sonar-scanner (with potential arguments)
i get this error response :
ANSWER
Answered 2019-May-22 at 11:22After further investigations i can say that i made a working docker image for sonar scanner that can work with gitlab ci.
DOCKERFILE
QUESTION
I have a Sonarqube instance running as a docker container. Since I updated it to version 7.1 the analysis of my greatest project fails with GC limit exceeded
. If I restart the server, it might succeed once. After a while of researching this issue, I am tempted to believe, I need to increase the Xmx
value for the background task.
Where and how can I configure this parameter?
docker-compose.yml
...ANSWER
Answered 2018-May-18 at 06:36You can simply put a sonar.properties
file under /opt/docker-sonar/conf/
. This file will be available inside the container under /opt/sonarqune/conf/
, because the folder gets mounted as volume.
A full example for a sonar.properties
file can be found on github. However all you need to enter is:
QUESTION
Background: I have a system behind a proxy/firewall. I can access docker to pull images, but do not have a username/password to access any other sites. Therefore my docker container of sonarqube is essentially offline.
Question: The docker container starts fine the first time, but fails to restart. This happens in two instances, either a manually installed plugin presents an error that it fails to download the update-center url, or it simply starts shutting down immediately as it starts. Both fail the application which closes the container. I do not seem to be able (or understand how to) modify the sonar.properties to get the update-center disabled and need guidance.
I have inquired on the github for the container without much help: https://github.com/SonarSource/docker-sonarqube/issues/76#issuecomment-364563967 The '-Dsonar.updatecenter.activate=false' option does not work when I try it.
Simply shutting down
...ANSWER
Answered 2018-Feb-12 at 18:45Regarding the README.txt issue, you have to create a volume and mount the temp folder (note that I use the postgres setup from anorak:girl). You can then start and stop with no problems.
QUESTION
I'm stumped by a question I received when working on an opensource Dockerfile, which boils down to, "why did you change the layers?" - so I'm trying to answer that with my own investigation.
I apologize that the subject is not well defined, but essentially it's about how docker layers relate to the docker-cache.
So I'm looking for an elegant explanation in an area which isn't well documented.
My changes from the original Dockerfile where to separate ENV into different layers, move a COPY earlier, and to expose the port later.
The original (simplified):
...ANSWER
Answered 2017-Jul-25 at 02:15While this question has some heavily opinionated possible answers, I'll attempt to keep to facts and other things sourced from docker's docs on this
Proper layering of layers in docker has essentially three goals (roughly ordered):
- correctness: some things need to be combined / ordered for correctness (for example
apt
operations should always start withapt-get update && ...
andapt-get update
should never be in a separateRUN
layer - minimize layers: fewer layers generally means better performance both for build and runtime. This generally means combining layers when possible
- cache performance: push cacheable layers as high up in the file as possible, note that if a layer is invalidated all layers after that layer are also invalidated
Given that, here's some observations from the things you've proposed:
separatingENV
layers
Given (2) above, you should keep ENV
layers combined when possible. Users can override --env
at runtime which does not affect build-time layering. Yes if one of the ENV
lines were modified in source it would invalidate the rest of the file (3) but generally this is traded off for performance reasons.
COPY
up
generally this is not a good idea, the source on disk is among the most likely things to change, if the source changes, all the layers from the COPY
layer downwards are invalidated
EXPOSE
This really doesn't matter. EXPOSE
is a nearly-trivial layer (it in fact does nothing unless you're linking containers). Since it is cacheable, I'd put it near the top but again, it's trivial to compute and doesn't really change.
tl;dr The maintainer is correct in saying no to all three changes as it will make build and run performance worse.
QUESTION
I'm running sonarqube in a docker container using this compose docker file: docker-compose
I want to add an external plugin (jar file). I couldn't manage to do so. Any ideas?
...ANSWER
Answered 2017-Jan-03 at 09:58Just copy your jars to your local folder "sonarqube_extensions/plugins" which should exist next to your docker-compose.yml file and they will be linked into your container according to your referenced docker-compose.yml file.
Old answer
You can modify your existing docker-compose.yml file. Assuming your jar files are located in a folder named "external_jars" next to the compose file and you want these jars to be available inside the container under, for example, /opt/sonarqube/external_jars
(I am not familiar with sonarQube and I do not know how the correct structure should look like). Then you can add one line to this excerpt of your compose file:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docker-sonar
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page