forked from newtmitch/docker-sonar-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (15 loc) · 791 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM java:8
RUN apt-get update
RUN apt-get install -y curl git tmux htop maven
# Set timezone to CST
ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /root
RUN curl --insecure -OL https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.0.3.778.zip
RUN unzip sonar-scanner-cli-3.0.3.778.zip
RUN rm sonar-scanner-cli-3.0.3.778.zip
ENV SONAR_RUNNER_HOME=/root/sonar-scanner-3.0.3.778
ENV PATH $PATH:/root/sonar-scanner-3.0.3.778/bin
COPY sonar-runner.properties ./sonar-scanner-3.0.3.778/conf/sonar-runner.properties
# Use bash if you want to run the environment from inside the shell, otherwise use the command that actually runs the underlying stuff
CMD sonar-runner -Dsonar.projectBaseDir=./src