目录

javaenv

优质
小牛编辑
132浏览
2023-12-01

javaenv

生成 java chaincode 运行的环境镜像。

包括 Dockerfile.in 文件,内容为:

FROM hyperledger/fabric-baseimage:_BASE_TAG_RUN wget https://services.gradle.org/distributions/gradle-2.12-bin.zip -P /tmp --quietRUN unzip -q /tmp/gradle-2.12-bin.zip -d /opt && rm /tmp/gradle-2.12-bin.zipRUN ln -s /opt/gradle-2.12/bin/gradle /usr/binADD payload/javashim.tar.bz2 /rootADD payload/protos.tar.bz2 /rootADD payload/settings.gradle /rootWORKDIR /root# Build java shim after copying proto files from fabric/protoRUN core/chaincode/shim/java/javabuild.sh