Sonar-scanner-cli latest Docker image missing bzip2

When running sonar-scanner-cli on Gitlab CI, the setup fails while installing npm package PhantomJS with error:

Phantom installation failed { Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar (child): bzip2: Cannot exec: No such file or directory

This occurs in the before_script as a result of bzip2 not being available on the image.



Hi @Abdulwahab_Sahyoun,
Welcome to the community :slight_smile:.

This should work fine with the newest image (version 4.4, now also tagged latest). Please let us know if that is not the case.

Cheers.