Blame view

Dockerfile 661 Bytes
4b1e0534c   Jean-Pierre   Initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  FROM java:8
  
  MAINTAINER Jean-Pierre Huynh <jean-pierre.huynh@alfresco.com>
  
  # Keep up to date according to SonarQube server compatibility matrix
  ENV SONAR_SCANNER_VERSION 2.6.1
  
  ENV SONAR_SCANNER_HOME /sonar-scanner-${SONAR_SCANNER_VERSION}
  ENV SONAR_SCANNER_DIST sonar-scanner-${SONAR_SCANNER_VERSION}.zip
  ENV SONAR_SCANNER_DIST_URL https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/${SONAR_SCANNER_DIST}
  
  RUN wget ${SONAR_SCANNER_DIST_URL} && unzip ${SONAR_SCANNER_DIST} && rm ${SONAR_SCANNER_DIST}
  
  COPY sonar-scanner.properties ${SONAR_SCANNER_HOME}/conf/sonar-scanner.properties
  ADD entrypoint.sh  /entrypoint.sh
  
  ENTRYPOINT ["/entrypoint.sh"]