docker-sonarqube | Dockerized SonarQube web server | Continuous Deployment library
kandi X-RAY | docker-sonarqube Summary
kandi X-RAY | docker-sonarqube Summary
Dockerfile to build a SonarQube container image.
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-sonarqube
docker-sonarqube Key Features
docker-sonarqube Examples and Code Snippets
Community Discussions
Trending Discussions on docker-sonarqube
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
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-sonarqube
Run the SonarQube with Docker Compose. Docker Compose uses a docker-compose.yml file that describes the environment. NOTE: It will build Sonar 5.6 container. If you want to run pre build 5.1, please edit the docker-compose.yml accordingly. NOTE: Please allow a minute or two for the SonarQube application to start.
username: admin
password: admin
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