[Autogenerated] okay and it's time to install sonar cube.
I'm a fan of package managers.
So here is how we can quickly install homebrew on a Mac.
If you don't already have it Now,
make sure that you have Javid 11 or higher installed.
If you don't have it.
Here's this command in Z shell, r C or bashar.
See if bash is your default shell,
insert the following for java home and update the path variable,
then reload the configuration with the source command.
We are ready to install summary cube.
Just execute brew,
install sonar cube and let's grab the sonar scanner as well
with brew and stole soner dash scanner.
We will also need these two environment variables in Zeek shell,
r C If you have bash is the default shell,
please insert them in bashar.
See And of course one more time.
Reload the configuration.
Before we proceed,
make sure that no other processes running on port 9000 or said the sonar
dot web dot party in sonar dot properties to support that is available and
here is a bonus setup tip one that I felt I should give you to save you
some real pain when running sonar.
It consists of two parts number one in the sauna dot properties file which
on a mac you can find a dislocation and ubuntu Linux,
you can find here just increase the heap size resources for web C and search
like so of course you will find these settings sprinkled across sonar dot
properties and you will have to run comments,
some of them in order to enable them Here.
I provided both keys conveniently in one place and the second
part if you ever encounter the message,
waiting for Elasticsearch to become ready in the logs with sondra hanging,
then just stops owner,
delete the Elasticsearch data directory at sonar installation folder
slash data slash e S seven and restarts ona cube.
It will rebuild the Elasticsearch index and sonar will start normally.
Now we can easily start the sonar cube as a homebrew service with this command.
At this point we can navigate to http colon.
/ / local host colon 9000 and let's log in with user admin and password.
Admin.
Sonar cube is asking to change the admin password,
which we do with a few quick keystrokes and there it is we're in we'll
go through a sample project set up in the next clip.