docker-sonar | offical sonarqube image now and installs | Continuous Deployment library

 by   MehrCurry Shell Version: Current License: No License

kandi X-RAY | docker-sonar Summary

kandi X-RAY | docker-sonar Summary

docker-sonar is a Shell library typically used in Devops, Continuous Deployment, Docker applications. docker-sonar has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

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

            kandi-support Support

              docker-sonar has a low active ecosystem.
              It has 40 star(s) with 13 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              docker-sonar has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of docker-sonar is current.

            kandi-Quality Quality

              docker-sonar has no bugs reported.

            kandi-Security Security

              docker-sonar has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              docker-sonar does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              docker-sonar releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docker-sonar
            Get all kandi verified functions for this library.

            docker-sonar Key Features

            No Key Features are available at this moment for docker-sonar.

            docker-sonar Examples and Code Snippets

            No Code Snippets are available at this moment for docker-sonar.

            Community Discussions

            QUESTION

            How to add node.js to this docker-compose file that spins up SonarQube?
            Asked 2019-Dec-18 at 18:11

            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
            1. At the same level as your compose file, create a Dockerfile

            Source https://stackoverflow.com/questions/59397407

            QUESTION

            Launching Sonar Scanner from a gitlab docker runner
            Asked 2019-May-22 at 11:22

            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:22

            After further investigations i can say that i made a working docker image for sonar scanner that can work with gitlab ci.

            DOCKERFILE

            Source https://stackoverflow.com/questions/56251725

            QUESTION

            How to change Xmx settings for sonar runner?
            Asked 2018-May-18 at 06:36

            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:36

            You 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:

            Source https://stackoverflow.com/questions/50365461

            QUESTION

            Sonarqube docker container fails to restart, offline
            Asked 2018-Feb-12 at 18:45

            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:45

            Regarding 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.

            Source https://stackoverflow.com/questions/48714618

            QUESTION

            Dockerfile: Is my placement of EXPOSE correct?
            Asked 2017-Jul-25 at 02:15

            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:15

            While 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):

            1. correctness: some things need to be combined / ordered for correctness (for example apt operations should always start with apt-get update && ... and apt-get update should never be in a separate RUN layer
            2. minimize layers: fewer layers generally means better performance both for build and runtime. This generally means combining layers when possible
            3. 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:

            separating ENV 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.

            moving 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

            moving 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.

            summary

            tl;dr The maintainer is correct in saying no to all three changes as it will make build and run performance worse.

            Source https://stackoverflow.com/questions/45291314

            QUESTION

            Add external plugin to sonarqube
            Asked 2017-Jan-03 at 09:58

            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:58

            Just 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:

            Source https://stackoverflow.com/questions/41440090

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install docker-sonar

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/MehrCurry/docker-sonar.git

          • CLI

            gh repo clone MehrCurry/docker-sonar

          • sshUrl

            git@github.com:MehrCurry/docker-sonar.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link