Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UNL ITS
docker-ci
Merge requests
!79
Update sonar-scanner container
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update sonar-scanner container
sonar-scanner-5
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Alan Nelson
requested to merge
sonar-scanner-5
into
develop
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
a3d041e8
1 commit,
1 year ago
2 files
+
4
−
34
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
static-code-analysis/Dockerfile
+
4
−
25
Options
FROM
openjdk:8-jre-alpine
FROM
sonarsource/sonar-scanner-cli:5
ARG
BUILD_DATE
ARG
VCS_REF
ARG
VERSION
LABEL
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="Sonar
q
ube Static Code Analyzer" \
org.label-schema.description="Docker image for static code analysis using
a
Sonar
qube server
" \
org.label-schema.name="Sonar
Q
ube Static Code Analyzer" \
org.label-schema.description="Docker image for static code analysis using
the
Sonar
Scanner CLI
" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vendor="University of Nebraska - Lincoln" \
org.label-schema.version="0.1.0" \
org.label-schema.schema-version="1.0" \
maintainer="J.R. Barreras <barreras@unl.edu>"
ENV
SONAR_SCANNER_VERSION 4.6.0.2311
WORKDIR
/opt
RUN
apk add
--no-cache
curl
sed
bash nodejs-current nodejs-npm su-exec
&&
\
mkdir
-p
/opt/src
&&
\
curl
--insecure
-o
./sonarscanner.zip
-L
https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-
${
SONAR_SCANNER_VERSION
}
.zip
&&
\
unzip sonarscanner.zip
&&
\
rm
sonarscanner.zip
ENV
SONAR_RUNNER_HOME=/opt/sonar-scanner-${SONAR_SCANNER_VERSION}
ENV
PATH $PATH:/opt/sonar-scanner-${SONAR_SCANNER_VERSION}/bin
COPY
entrypoint.sh /usr/local/bin/
RUN
chmod
+x /usr/local/bin/entrypoint.sh
ENTRYPOINT
["/usr/local/bin/entrypoint.sh"]
CMD
/bin/bash
maintainer="Alan Nelson <alan.nelson@nebraska.edu>"
Loading