Coder Social home page Coder Social logo

Comments (10)

rschlick avatar rschlick commented on July 29, 2024 2

I have proposed a pull request, but I don't have access on your repository.
I have clone your repository and push the commit on my repository here:
https://github.com/rschlick/docker-sonar

In Dockerfile I have added:

ENV SONARQUBE_WEB_CONTEXT /

And in run.sh (in the exec java commands):

-Dsonar.web.context="$SONARQUBE_WEB_CONTEXT" \

from docker-sonarqube.

Godin avatar Godin commented on July 29, 2024 1

@IrishkA13 there is no such variables sonar.web.context and JAVA_OPTS, so that why it doesn't work. As explained in #17 (comment) just above your comment, you can do:

docker run -p 9000:9000 -it sonarqube -Dsonar.web.context=/sonarqube

and equivalent of this in a docker-compose notation:

version: "2"

services:
  sonarqube:
    image: sonarqube
    command: -Dsonar.web.context=/sonarqube
    ports:
      - "9000:9000"

from docker-sonarqube.

Godin avatar Godin commented on July 29, 2024

sonar.web.context has been removed in SonarQube version 5.4 - see https://jira.sonarsource.com/browse/SONAR-7122

from docker-sonarqube.

tobilarscheid avatar tobilarscheid commented on July 29, 2024

I vote for reopening this, as the web context will be added in sonar 5.5 again!

https://jira.sonarsource.com/browse/SONAR-7494

from docker-sonarqube.

Godin avatar Godin commented on July 29, 2024

@tobilarscheid could you please check #22 - in comparison with this request it introduces more generic variable which can be used to specify various options via sonar.web.javaAdditionalOpts and not just context, and in comparison with #20 it allows to pass it without removal of current default value -Djava.security.egd=file:/dev/./urandom. This looks to me as cleanest solution, if it covers this need, then no pb to merge it.

from docker-sonarqube.

tobilarscheid avatar tobilarscheid commented on July 29, 2024

Yes, I think #22 is a clean solution!

from docker-sonarqube.

Godin avatar Godin commented on July 29, 2024

Closed in preference to #22

from docker-sonarqube.

Godin avatar Godin commented on July 29, 2024

In fact SONARQUBE_WEB_JVM_OPTS (#22) doesn't work for sonar.web.*, however without any modifications, i.e. even for older images (e.g. 5.3), you can do

docker run -p 9000:9000 -it sonarqube:5.3 -Dsonar.web.context=/sq

arguments specified for docker run are passed to jvm. Thus, is there any benefits in addition of environment variable to specify the same?

from docker-sonarqube.

islisava avatar islisava commented on July 29, 2024

Hi!
I am trying to change 'sonar.web.context' property within Dockerfile (as ENV property) or docker-compose.yml (as environment property):

ENV sonar.web.context /sonarqube
or
ENV JAVA_OPTS -Dsonar.web.context=/sonarqube

Is there a way to make it work?
Or do I do something wrong?

from docker-sonarqube.

islisava avatar islisava commented on July 29, 2024

@Godin thanks a lot for reply!

from docker-sonarqube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.