github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/docker/sawtooth-int-noop-tp-go (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 with Sawtooth TP Noop Go installed.
    18  #
    19  # Build:
    20  #   This image should be built using `build_all installed`.
    21  #
    22  # Run:
    23  #   $ docker run sawtooth-noop-tp-go
    24  
    25  FROM ubuntu:xenial
    26  
    27  LABEL "install-type"="copied-bin"
    28  
    29  RUN apt-get update \
    30   && apt-get install -y -q \
    31      libssl-dev \
    32      libzmq3-dev \
    33   && apt-get clean \
    34   && rm -rf /var/lib/apt/lists/*
    35  
    36  COPY noop-tp-go /usr/bin/noop-tp-go
    37  
    38  EXPOSE 4004/tcp
    39  
    40  CMD ["noop-tp-go", "-C", "tcp://validator:4004"]