Comments (10)
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.
@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.
sonar.web.context
has been removed in SonarQube version 5.4 - see https://jira.sonarsource.com/browse/SONAR-7122
from docker-sonarqube.
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.
@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.
Yes, I think #22 is a clean solution!
from docker-sonarqube.
Closed in preference to #22
from docker-sonarqube.
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.
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.
@Godin thanks a lot for reply!
from docker-sonarqube.
Related Issues (20)
- Critical vulnerabilities with packages org.yaml/snakeyaml v1.33 and org.apache.sshd/sshd-common v2.8.0 HOT 1
- Add curl to container to allow native Docker healthchecks HOT 2
- docker run -e 的参数是在哪里定义的?为什么有的可以有的不行 HOT 5
- sonarqube dashboard show 0% code coverage sometime. HOT 1
- Can't find rule `Promises should not be misused` HOT 3
- sonarqube token dissappears almost immediately on AWS ec2, HOT 3
- SonarQube docker: wrong ownership of mounted volumn HOT 3
- Docker image deploy ulimit and baseos HOT 1
- Trying to upgrade sonar 9.9.0-developer edition to latest (10.1.0-developer), build is successful but not generating the sonar report from azure devops
- SonarQube 10.2 does not start with postgres 15.4 HOT 2
- There is insufficient memory for the Java Runtime Environment to continue. HOT 3
- Missing linux/amd64 for version 10.2.1-xxx HOT 2
- permissions issues with 9.9 HOT 5
- Option to use alpine version again HOT 10
- Security hardening for Sonarqube POD/containers deployed through HELM charts in Azure Kubernetes cluster HOT 1
- Docker image cant run due to java issue HOT 2
- Elasticsearch error HOT 8
- gid=0 will violate future Pod Security Standards Restricted Profile HOT 5
- root Group not compliant with Baseline PodSecurityStandard HOT 1
- Resolve vulnerabilities in docker images HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-sonarqube.