Skip to content

Commit

Permalink
Review ideas
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew B White <[email protected]>
  • Loading branch information
mbwhite committed May 20, 2021
1 parent 7645bb9 commit e096d4f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions fabric-chaincode-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ RUN gradle \
clean \
fabric-chaincode-protos:build \
fabric-chaincode-protos:publishToMavenLocal \
#Wfabric-chaincode-protos:publishProtosJarPublicationToMavenLocal \
fabric-chaincode-shim:build \
#fabric-chaincode-shim:publishShimJarPublicationToMavenLocal \
fabric-chaincode-shim:publishToMavenLocal \
-x javadoc \
-x test \
Expand All @@ -52,10 +50,8 @@ RUN mvn -f pom-default.xml compile
WORKDIR /root/chaincode-java/shim-src/fabric-chaincode-shim/build/publications/shimJar/
RUN mvn -f pom-default.xml compile

#Removing non-needed sources
WORKDIR /root/chaincode-java
RUN rm -rf shim-src

# Run the Gradle and Maven commands to generate the wrapper variants
# of each tool
#Gradle doesn't run without settings.gradle file, so create one
RUN touch settings.gradle
RUN gradle wrapper
Expand All @@ -67,8 +63,8 @@ FROM adoptopenjdk/openjdk11:jdk-11.0.4_11-alpine
RUN apk add --no-cache bash

SHELL ["/bin/bash", "-c"]
ENV PATH="/usr/bin/maven/bin:/usr/bin/maven/:/usr/bin/gradle:/usr/bin/gradle/bin:${PATH}"

# Copy setup scripts, and the cached dependeices
COPY --from=dependencies /root/chaincode-java /root/chaincode-java
COPY --from=dependencies /root/.m2 /root/.m2

Expand Down

0 comments on commit e096d4f

Please sign in to comment.