github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/docker/sawtooth-debug-python (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  FROM ubuntu:xenial
    17  
    18  RUN echo "deb [arch=amd64] http://repo.sawtooth.me/ubuntu/ci xenial universe" >> /etc/apt/sources.list \
    19   && echo "deb [arch=amd64] http://repo.sawtooth.me/ubuntu/debug/ xenial universe" >> /etc/apt/sources.list \
    20   && (apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \
    21       --recv-keys 8AA7AF1F1091A5FD 44FC67F19B2466EA \
    22   || apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 \
    23       --recv-keys 8AA7AF1F1091A5FD 44FC67F19B2466EA) \
    24   && apt-get update \
    25   && apt-get install -y -q \
    26      apt-transport-https \
    27      build-essential \
    28      ca-certificates \
    29      curl \
    30      git \
    31      inetutils-ping \
    32      libffi-dev \
    33      libssl-dev \
    34      python3-aiodns=1.1.1-1 \
    35      python3-aiohttp>=2.3.2-1 \
    36      python3-aiopg \
    37      python3-async-timeout=1.2.0-1 \
    38      python3-bitcoin=1.1.42-1 \
    39      python3-cbor \
    40      python3-cchardet=2.0a3-1 \
    41      python3-colorlog \
    42      python3-cov-core \
    43      python3-cryptography-vectors=1.7.2-1 \
    44      python3-cryptography=1.7.2-1 \
    45      python3-dev \
    46      python3-grpcio-tools=1.1.3-1 \
    47      python3-grpcio=1.1.3-1 \
    48      python3-lmdb=0.92-1 \
    49      python3-multidict=2.1.4-1 \
    50      python3-netifaces=0.10.4-0.1build2 \
    51      python3-nose2 \
    52      python3-pip \
    53      python3-protobuf \
    54      python3-psycopg2 \
    55      python3-pycares=2.1.1-1 \
    56      python3-pyformance \
    57      python3-pytest-runner=2.6.2-1 \
    58      python3-pytest=2.9.0-1 \
    59      python3-pytz=2016.10-1 \
    60      python3-requests \
    61      python3-secp256k1=0.13.2-1 \
    62      python3-setuptools-scm=1.15.0-1 \
    63      python3-six=1.10.0-1 \
    64      python3-toml \
    65      python3-yaml \
    66      python3-yarl=0.10.0-1 \
    67      python3-zmq \
    68      software-properties-common \
    69      gdb \
    70      python3-all-dbg \
    71      python3-zmq-dbg \
    72      python3-cffi-backend-dbg python3-apt-dbg \
    73      python3-netifaces-dbg \
    74      libzmq-dbg python3-cchardet-dbg \
    75      python3-grpcio-dbg \
    76      python3-lmdb-dbg python3-pycares-dbg \
    77      python3-secp256k1-dbg \
    78   && apt-get clean \
    79   && rm -rf /var/lib/apt/lists/* \
    80   && pip3 install \
    81      pylint \
    82      pycodestyle \
    83      bandit \
    84      coverage --upgrade
    85  
    86  RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
    87   && add-apt-repository \
    88     "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
    89        $(lsb_release -cs) \
    90           stable"
    91  
    92  RUN apt-get update && apt-get install -y -q \
    93      docker-ce \
    94   && apt-get clean \
    95   && rm -rf /var/lib/apt/lists/*
    96  
    97  # EXPOSE 4004/tcp
    98  # EXPOSE 8008
    99  
   100  RUN mkdir -p /project/sawtooth-core/ \
   101   && mkdir -p /var/log/sawtooth \
   102   && mkdir -p /var/lib/sawtooth \
   103   && mkdir -p /etc/sawtooth \
   104   && mkdir -p /etc/sawtooth/keys
   105  
   106  ENV PATH=$PATH:/project/sawtooth-core/bin
   107  
   108  WORKDIR /project/sawtooth-core
   109  CMD build_python