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
Commits
a3d041e8
Commit
a3d041e8
authored
1 year ago
by
Alan Nelson
Browse files
Options
Downloads
Patches
Plain Diff
Update sonar-scanner container
parent
42a82c15
No related branches found
No related tags found
2 merge requests
!80
Develop
,
!79
Update sonar-scanner container
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
static-code-analysis/Dockerfile
+4
-25
4 additions, 25 deletions
static-code-analysis/Dockerfile
static-code-analysis/entrypoint.sh
+0
-9
0 additions, 9 deletions
static-code-analysis/entrypoint.sh
with
4 additions
and
34 deletions
static-code-analysis/Dockerfile
+
4
−
25
View file @
a3d041e8
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>"
This diff is collapsed.
Click to expand it.
static-code-analysis/entrypoint.sh
deleted
100644 → 0
+
0
−
9
View file @
42a82c15
#!/bin/bash
# Add local user
# Either use the LOCAL_USER_ID if passed in at runtime or
# fallback
USER_ID
=
${
LOCAL_USER_ID
:-
9001
}
su-exec user
"
$@
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment