github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/docker/sawtooth-dev-java (about)

     1  # Copyright 2017 Intel Corporation
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  # ------------------------------------------------------------------------------
    15  
    16  # Description:
    17  #   Builds an image to be used when developing in Java. The default CMD is to run
    18  #   build_java.
    19  #
    20  # Build:
    21  #   $ cd sawtooth-core/docker
    22  #   $ docker build . -f sawtooth-dev-java -t sawtooth-dev-java
    23  #
    24  # Run:
    25  #   $ cd sawtooth-core
    26  #   $ docker run -v $(pwd):/project/sawtooth-core sawtooth-dev-java
    27  
    28  FROM maven:3-jdk-8
    29  
    30  LABEL "install-type"="mounted"
    31  
    32  EXPOSE 4004/tcp
    33  
    34  RUN mkdir -p /project/sawtooth-core/ \
    35   && mkdir -p /var/log/sawtooth \
    36   && mkdir -p /var/lib/sawtooth \
    37   && mkdir -p /etc/sawtooth \
    38   && mkdir -p /etc/sawtooth/keys
    39  
    40  ENV PATH=$PATH:/project/sawtooth-core/bin
    41  
    42  WORKDIR /
    43  
    44  CMD /project/sawtooth-core/bin/build_java_sdk \
    45   && /project/sawtooth-core/bin/build_java_intkey \
    46   && /project/sawtooth-core/bin/build_java_xo