Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create docker image for testing of sonar plugin #32

Closed
romani opened this issue Dec 14, 2016 · 7 comments
Closed

create docker image for testing of sonar plugin #32

romani opened this issue Dec 14, 2016 · 7 comments

Comments

@romani
Copy link
Member

romani commented Dec 14, 2016

We need to combine:
https://hub.docker.com/_/sonarqube/
ubuntu+maven+jdk8+git
to create new public image for hub.docker.com owned by checkstyle organization.

to adjust wercker CI to use it as base system.
In that system we need to:

  1. clone sonar-checkstyle sources
  2. package all
  3. install in sonar
  4. restart sonar
  5. make sure sonar is starting
  6. do test launch of "mvn sonar:sonar" against sonar-checkstyle sources. No errors are expected.
@romani
Copy link
Member Author

romani commented Feb 18, 2017

git clone https://github.com/checkstyle/sonar-checkstyle.git
cd sonar-checkstyle
mvn package
cp checkstyle-sonar-plugin/target/checkstyle-sonar-plugin-3.6-SNAPSHOT.jar ../extensions/plugins/
curl -X POST http://localhost:9000/api/system/restart -u admin:admin
#wait for restart
sleep 20
# just force sonarqube to do smth base on his defaults
mvn sonar:sonar

@MEZk
Copy link

MEZk commented Feb 19, 2017

@romani
Copy link
Member Author

romani commented Feb 21, 2017

pushing to docker hub - https://docs.docker.com/docker-hub/repos/

So we need to create user "checkstyle" , name of docker images will be
https://hub.docker.com/r/checkstyle/sonarqube-maven-git/ ( I did this base on assumption - https://hub.docker.com/r/jboesl/mssql-server-linux/ )

organization can not be created as it is require billing information, so we should stay with user.

@romani
Copy link
Member Author

romani commented Feb 21, 2017

done , example of failure - https://app.wercker.com/checkstyle/sonar-checkstyle/runs/build/58abc664e560360100d6bc74?step=58abc66ad2fd510001653fcb

for now docker image will be hosted in my private user, as it become stable I will move it to "checkstyle" user.

@romani
Copy link
Member Author

romani commented Feb 21, 2017

@romani
Copy link
Member Author

romani commented Feb 21, 2017

side note:
I failed to install "less" tool to docker. Package is easy to install, package "less", but during to launch it is failing with "WARNING: terminal is not fully functional".

tsjensen pushed a commit to checkstyle-addons/sonar-checkstyle that referenced this issue Mar 21, 2019
tsjensen pushed a commit to checkstyle-addons/sonar-checkstyle that referenced this issue Mar 21, 2019
tsjensen pushed a commit to checkstyle-addons/sonar-checkstyle that referenced this issue Mar 21, 2019
tsjensen pushed a commit to checkstyle-addons/sonar-checkstyle that referenced this issue Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants