Skip to main content

Posts

Showing posts from January, 2020

Docker Points to Remember

                                Docker service commands 1)  Run the container             docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root mysql 2) Stop/Start  the container           docker stop mysql           docker start mysql 3) commit the container             docker commit mysql 4) Save the image into the file                 docker save -o mysql mysql 6) load the images into docker repo                docker load -i mysql 7) Running container terminal              docker exec -it mysql bash

Docker SonarQube - Code Review

Docker SonarQube - Code Review 1) Run docker sonarqube                docker run  --name sonarqube -p 7000:9000  -e POSTGRESQL_HOST=10.184.48.46  -e SONARQUBE_DATABASE_USER=sonarqube  -e SONARQUBE_DATABASE_NAME=sonarqube  -e SONARQUBE_DATABASE_PASSWORD=sonarqube -Dsonar.ce.javaOpts=-Xmx2048m -Dsonar.web.javaOpts=-Xmx2048m  bitnami/sonarqube:latest                      username: admin                      password: bitnami In the portal disable scanner 2) Create a key and add the projects to sonarqube                mvn sonar:sonar   -Dsonar.projectKey=myprj1   -Dsonar.host.url=http://localhost:9000   -Dsonar.login=d2023e31fad6ecec0b9ace927c36f58764e35ee8 3) commit the container           ...