File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
fabric-chaincode-integration-test/src/contracts/fabric-chaincode-example-sbe Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- FROM hyperledger/fabric-baseimage:amd64-0.4.16
1+ FROM hyperledger/fabric-baseimage:amd64-0.4.16 as dependencies
22RUN apt-get update
33RUN apt-get install zip -y
44RUN curl -s "https://get.sdkman.io" | bash
@@ -60,19 +60,19 @@ WORKDIR /root/chaincode-java
6060RUN rm -rf example-src/*
6161RUN rm -rf shim-src
6262
63- RUN gradle wrapper
63+ RUN source /root/.sdkman/bin/sdkman-init.sh; gradle wrapper --gradle-version 4.6
6464
6565# Creating final javaenv image which will include all required
6666# dependencies to build and compile java chaincode
67- FROM adoptopenjdk/openjdk11:jdk-11.0.4_11-alpine
68- RUN apk add --no-cache bash
67+ FROM adoptopenjdk/openjdk8
68+ RUN apt-get update && apt-get upgrade -y
6969
7070COPY --from=dependencies /root/chaincode-java/gradle /root/chaincode-java/
7171COPY --from=dependencies /root/chaincode-java/gradlew /root/chaincode-java/gradlew
72- COPY --from=builder /root/.sdkman/candidates/maven/current /usr/bin/maven
73-
72+ COPY --from=dependencies /root/.sdkman/candidates/maven/current /usr/bin/maven
73+ COPY --from=dependencies /root/.sdkman/ /root/.sdkman/
7474SHELL ["/bin/bash" , "-c" ]
75- ENV PATH="/usr/bin/maven/bin:/usr/bin/maven/:/usr/bin/gradle:/usr/bin/gradle/bin: ${PATH}"
75+ ENV PATH="/usr/bin/maven/bin:/usr/bin/maven/:${PATH}"
7676
7777COPY --from=dependencies /root/chaincode-java /root/chaincode-java
7878COPY --from=dependencies /root/.m2 /root/.m2
Original file line number Diff line number Diff line change 11plugins {
2- id ' com.github.johnrengelman.shadow' version ' 2 .0.3'
2+ id ' com.github.johnrengelman.shadow' version ' 4 .0.3'
33 id ' java'
44}
55
You can’t perform that action at this time.
0 commit comments