github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/images/javaenv/Dockerfile.in (about)

     1  # Copyright Greg Haskins All Rights Reserved
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  #
     5  FROM _BASE_NS_/fabric-baseimage:_BASE_TAG_
     6  RUN curl -sSL https://services.gradle.org/distributions/gradle-2.12-bin.zip > /tmp/gradle-2.12-bin.zip
     7  RUN unzip -qo /tmp/gradle-2.12-bin.zip -d /opt && rm /tmp/gradle-2.12-bin.zip
     8  RUN ln -s /opt/gradle-2.12/bin/gradle /usr/bin
     9  ENV MAVEN_VERSION=3.3.9
    10  ENV USER_HOME_DIR="/root"
    11  RUN mkdir -p /usr/share/maven /usr/share/maven/ref \
    12    && curl -fsSL http://apache.osuosl.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \
    13      | tar -xzC /usr/share/maven --strip-components=1 \
    14    && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
    15  ENV MAVEN_HOME /usr/share/maven
    16  ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
    17  ADD payload/javashim.tar.bz2 /root
    18  ADD payload/protos.tar.bz2 /root
    19  ADD payload/settings.gradle /root
    20  WORKDIR /root
    21  # Build java shim after copying proto files from fabric/proto
    22  RUN core/chaincode/shim/java/javabuild.sh