Kindly Click the Download button and you can either place the MSBuild executables to the %PATH% directory of Windows as shown in Figure 16. Set of Commands for Running Analysisįirst things first is to download the MSBuild sonar scanner that we will be using to run our analysis to our projects. Let’s Run our first analysis on our Xamarin ProjectĪfter clicking the continue button from the generation of Token, you can now run analysis on your project by following the given steps as shown in Figure 15. Generating TokenĪlways remember or keep track of the generated token because we will be using this to link our project to this newly created SonarQube as shown in Figure 14. Next step is to provide a Token Name and click generate as shown in Figure 13. After filling up the said fields click the Set Up button. Let’s try to create a new Project by clicking Create new project, then kindly fill up the Project Key and Display Name as shown in Figure 12. Login to SonarQubeĪfter successfully login, you will be greeted by this landing page as shown in Figure 11. DOCKER FOR MAC GENERAL SETTING PASSWORDLet’s login in SonarQube by entering the username and password as admin as shown in Figure 10. Now let’s create our First Project in SonarQube. Check if SonarQube is runningĪnother way to check if SonarQube is already running is to try to access the localhost as shown Figure 9. To check if the SonarQube service is already running, you could try this command docker ps and it should return a result same in Figure 8. Next step is to run an instance of SonarQube Docker with this command docker run -d –name sonarqube -p 9000:9000 sonarqube:7.9.4-community as shown in figure 7. Powershell command for pulling latest Community edition of SonarQube Paste the copied command to a Windows Powershell with administrative level as shown in Figure 6. Pull Command for Latest Community Version Now let’s try to pull the latest version of SonarQube docker by going to the Tags section and get the latest version of SonarQube and click the copy command for the latest community version as shown in Figure 5. DockerHub landing pageĪfter you have searched SonarQube, kindly find the Official SonarQube docker and click it and you will have the same landing page for the official SonarQube docker as shown in Figure 4. You don’t need any account to download from the docker hub, kindly search SonarQube from the docker hub. Download page for Docker DesktopĪfter successfully downloading Docker desktop setup file, just follow the installation steps and if successfully installed and try to go to dashboard you will get something like in Figure 2.Īlright so we’ve installed Docker Desktop, we have a running Docker Service the next step is to pull from the official Image of SonarQube by going to this link which is the Docker Hub as shown in Figure 3. Kindly select the appropriate system that you whether your on MAC, LINUX or WINDOWS. Kindly go to this link and you will be greeted with the page as seen in Figure 1. DOCKER FOR MAC GENERAL SETTING INSTALLLet’s first install Docker Desktop in order for us to Manage our SonarQube docker with ease and for the future dockers that you might want to discover or use. DOCKER FOR MAC GENERAL SETTING CODEAnother good thing with SonarQube is that currently it has a Community Edition that is free and you can try it out to evaluate if the code analysis suits your needs in terms of quality. What’s good about SonarQube is that it currently supports 20+ languages for code analysis. SonarQube basically is Open Source tool that focuses on Code Quality by performing reviews through static code analysis to detect bugs, security flaws, code smells and more. resources rather than having a stand alone per container and it’s basically secure due to containers are isolated by default. It’s lightweight due to containers are sharing O.S. What’s good about docker containers is that it’s uniform or standard that makes it possible for it to run even in different Operating System. Docker is tool wherein you can easily create, deploy and run application in a containerize environment.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |