docker-sonarqube icon indicating copy to clipboard operation
docker-sonarqube copied to clipboard

assets/init: no such file or directory

Open Sinapse87 opened this issue 9 years ago • 5 comments

Hi, while running sudo docker build --tag="$USER/sonarqube" . I get the following error: assets/init: no such file or directory

Do you know why ?

Sinapse87 avatar May 06 '15 13:05 Sinapse87

I just did a fresh checkout and it works without issues:

git clone https://github.com/harbur/docker-sonarqube.git
cd docker-sonarqube
docker build --tag="$USER/sonarqube" .

you should have an assets/init file if you have a fresh checkout. The message you receive is that the file is not there. Can you check if you have the file?

dkapanidis avatar May 06 '15 17:05 dkapanidis

btw, you I prefer to use captain with captain build instead of cumbersome docker build commands.

dkapanidis avatar May 06 '15 17:05 dkapanidis

Hi Spiddy, really really thanks for your answer. No I do not get the asset/init unfortunately. Is that part of Sonar itself ? Is it working for you ?

Thanks

Sinapse87 avatar May 06 '15 19:05 Sinapse87

Happy to help.

Yes, it's working ok for me. The file is a bash script that is included in the sonarqube container during build process.

You should check why you're missing the file. Alternatively just do a fresh checkout

On Wed, May 6, 2015, 9:54 PM Luca [email protected] wrote:

Hi Spiddy, really really thanks for your answer. No I do not get the asset/init unfortunately. Is that part of Sonar itself ? Is it working for you ?

Thanks

— Reply to this email directly or view it on GitHub https://github.com/harbur/docker-sonarqube/issues/8#issuecomment-99586249 .

dkapanidis avatar May 06 '15 21:05 dkapanidis

I think there is a small mistake a t the beginning of the docker file, at least for me. I had to change the first line to:

FROM library/java

Also, because I will need an ad-hoc sonar configuration, do you know how can I persist the change in the container and export them ?

Thanks

Sinapse87 avatar May 07 '15 07:05 Sinapse87