mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:15:49 +00:00
Create Dockerfile
This commit is contained in:
parent
56f09331aa
commit
088635110d
1 changed files with 8 additions and 0 deletions
8
Dockerfile
Normal file
8
Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
|||
FROM ubuntu
|
||||
RUN apt-get update -y && apt-get install unzip && apt-get install wget -y
|
||||
RUN wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.2.0.1873-linux.zip && unzip sonar-scanner-cli-4.2.0.1873-linux.zip
|
||||
#WORKDIR /sonar-scanner-cli-4.2.0.1873-linux/bin
|
||||
ADD spring-petclinic /opt
|
||||
RUN echo "sonar.host.url=http://3.23.102.180:9000" >> /sonar-scanner-4.2.0.1873-linux/conf/sonar-scanner.properties
|
||||
WORKDIR /sonar-scanner-4.2.0.1873-linux/bin
|
||||
RUN ./sonar-scanner -Dsonar.projectKey=sonar -Dsonar.sources=/opt/src -Dsonar.projectVersion=1 -Dsonar.sources=/opt/.
|
Loading…
Reference in a new issue