-
Notifications
You must be signed in to change notification settings - Fork 73
How to push Dockerfile to docker hub
Roman Ivanov edited this page Feb 6, 2019
·
18 revisions
-
create user on docker hub (become part of "checkstyle" organization)
-
At folder
sonar-checkstyle/checkstyle-sonar-plugin/config
do
docker build -t sonarqube-maven-git .
launch it and make sure it works
docker run -d --name sonarqube-m-g -p 9000:9000 -p 9092:9092 sonarqube-maven-git
recheck that service is up - http://localhost:9000/about
do commit of Dockerfile , and store commit SHA for tag creation (see next step)
-
docker tag sonarqube-maven-git:latest checkstyle/sonarqube-maven-git:X.X-community
-
docker login --username=<user username>
-
docker push checkstyle/sonarqube-maven-git
Image location - https://hub.docker.com/r/checkstyle/sonarqube-maven-git/