nilleb / dockerfiles

4 stars 2 forks source link

docker container not getting started #1

Open aumanjoa opened 7 years ago

aumanjoa commented 7 years ago

Hi @nilleb

when I try to run your docker with this command

docker run --name sonarqube -p 9000:9000 -p 9092:9092 nilleb/sonarqube-for-windows

I am getting this errors:

C:\sonarqube>set args=xx

C:\sonarqube>if not xxx == x-x ( ) else ( ) was unexpected at this time.

can you please tell me what is wrong?

Cheers

nilleb commented 7 years ago

this is because of the file https://github.com/nilleb/dockerfiles/blob/master/windows/sonarqube/5.6.4/run.cmd

if you pass a sonarqube option like -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8080 (see https://github.com/nilleb/dockerfiles/blob/master/startSonarQube.cmd) it will work.

if you don't need a proxy, try setting a dummy variable (e.g. -Dfraise=tagada).

If you're willing to fix the run.cmd, pull requests are welcome! :-) (Sorry for appearing lame, but I haven't anymore a Windows Server environment)