Skip to content
Snippets Groups Projects
Dockerfile 938 B
FROM its-registry.unl.edu/unl-its/docker-ci/android-build-server 

ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
      org.label-schema.name="Android Static Code Analyzer" \
      org.label-schema.description="Docker image for static code analysis of Android projects" \
      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="Alan Nelson <alan.nelson@nebraska.edu>"

ENV SONAR_SCANNER_VERSION 3.2.0.1227
ENV SONAR_HOME /opt/sonar-scanner

ENV PATH ${PATH}:${SONAR_HOME}

WORKDIR /opt
RUN mkdir -p /opt/src \
    && curl -q -o sonarscanner.zip -L https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip \
    && unzip -q sonarscanner.zip -d ${SONAR_HOME} \
    && rm sonarscanner.zip