Dockerfile 811 B

1234567891011121314151617181920212223242526272829303132
  1. FROM java:8-jdk-alpine
  2. RUN apk add --no-cache --update python3 git
  3. ADD . /root/
  4. WORKDIR /root
  5. RUN git clone https://github.com/jenkinsci/jenkins.git
  6. WORKDIR /root/fetch_jira_bugs
  7. RUN python3 fetch.py
  8. RUN python3 git_log_to_array.py --repo-path ../jenkins
  9. RUN python3 find_bug_fixes.py --gitlog ./gitlog.json --issue-list ./issues
  10. WORKDIR /root/szz
  11. RUN apk add --no-cache --update openjdk8 curl
  12. RUN mkdir /usr/lib/gradle
  13. WORKDIR /usr/lib/gradle
  14. RUN set -x \
  15. && curl -L -O https://services.gradle.org/distributions/gradle-4.10.3-bin.zip \
  16. && unzip gradle-4.10.3-bin.zip
  17. ENV PATH ${PATH}:/usr/lib/gradle/gradle-4.10.3/bin
  18. WORKDIR /root/szz
  19. RUN gradle build && gradle fatJar
  20. RUN java -jar ./build/libs/szz_find_bug_introducers-0.1.jar -i ../fetch_jira_bugs/issue_list.json -r ../jenkins
  21. WORKDIR /root