https://github.com/philips-software/docker-sonar-scanner
Sonar Scanner docker setup
https://github.com/philips-software/docker-sonar-scanner
docker-images software-quality
Last synced: about 1 year ago
JSON representation
Sonar Scanner docker setup
- Host: GitHub
- URL: https://github.com/philips-software/docker-sonar-scanner
- Owner: philips-software
- License: mit
- Created: 2020-03-18T08:22:44.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T15:34:27.000Z (over 2 years ago)
- Last Synced: 2023-10-06T16:36:50.275Z (over 2 years ago)
- Topics: docker-images, software-quality
- Language: Dockerfile
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 6
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
[](https://github.com/philips-software/docker-sonar-scanner/actions/)
[](https://philips-software-slackin.now.sh)
> ⚠️ This repository is no longer used. Please use nix to provision your builds.
# Docker images
This repo will contain docker images with the [Sonar Scanner](https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/)
Current versions available:
```
.
├──4
│ └── Dockerfile
```
## Usage
Images can be found on [https://hub.docker.com/r/philipssoftware/sonar-scanner/](https://hub.docker.com/r/philipssoftware/sonar-scanner/).
``` bash
docker run -v (pwd):/root/src
-w /root/src
philipssoftware/sonar-scanner
sonar-scanner -Dsonar.login=
-Dsonar.host.url=
```
The scanner will read the `sonar-project.properties` from your project.
## Content
The images obviously contain sonar, node 16, python 2,3 and java 11, but also two other files:
- `REPO`
- `TAGS`
### REPO
This file has a url to the REPO with specific commit-sha of the build.
Example:
```
$ docker run philipssoftware/sonar-scanner cat REPO
https://github.com/philips-software/docker-sonar-scanner/tree/facb2271e5a563e5d6f65ca3f475cefac37b8b6c
```
### TAGS
This contains all the similar tags at the point of creation.
```
$ docker run philipssoftware/sonar-scanner:4 cat TAGS
sonar-scanner sonar-scanner:4 sonar-scanner:4.7 sonar-scanner:4.7.0 sonar-scanner:4.7.0.2747
```
You can use this to pin down a version of the container from an existing development build for production. When using `sonar-scanner:4` for development. This ensures that you've got all security updates in your build. If you want to pin the version of your image down for production, you can use this file inside of the container to look for the most specific tag, the last one.
## Simple Tags
### sonar-scanner
- `sonar-scanner`, `sonar-scanner:4`, `sonar-scanner:4.7`, `sonar-scanner:4.7.0`, `sonar-scanner:4.7.0.2747` [4/Dockerfile](4/Dockerfile)
## Why
> Why do we have our own docker image definitions?
We often need some tools in a container for checking some things. F.e. [jq](https://stedolan.github.io/jq/), [aws-cli](https://aws.amazon.com/cli/) and [curl](https://curl.haxx.se/).
We can install this every time we need a container, but having this baked into a container seems a better approach.
That's why we want our own docker file definitions.
## Known Issues
None
## Issues
- If you have an issue: report it on the [issue tracker](https://github.com/philips-software/docker-sonar-scanner/issues)
## Author
- Jeroen Knoops
- Gertjan Maaas
## License
License is MIT. See [LICENSE file](LICENSE.md)
## Philips Forest
This module is part of the Philips Forest.
```
___ _
/ __\__ _ __ ___ ___| |_
/ _\/ _ \| '__/ _ \/ __| __|
/ / | (_) | | | __/\__ \ |_
\/ \___/|_| \___||___/\__|
Infrastructure
```
Talk to the forestkeepers in the `docker-images`-channel on Slack.
[](https://philips-software-slackin.now.sh)