github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/docker/sawtooth-validator-mounted (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 LABEL "install-type"="mounted" 19 20 RUN echo "deb [arch=amd64] http://repo.sawtooth.me/ubuntu/ci xenial universe" >> /etc/apt/sources.list \ 21 && (apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD \ 22 || apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 8AA7AF1F1091A5FD) \ 23 && apt-get update \ 24 && apt-get install -y -q \ 25 apt-transport-https \ 26 build-essential \ 27 ca-certificates \ 28 curl \ 29 git \ 30 inetutils-ping \ 31 libffi-dev \ 32 libssl-dev \ 33 pep8 \ 34 python3-aiodns=1.1.1-1 \ 35 python3-aiohttp=1.3.5-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=3.2.0-1 \ 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 && apt-get clean \ 70 && rm -rf /var/lib/apt/lists/* \ 71 && pip3 install \ 72 pylint \ 73 bandit \ 74 coverage --upgrade 75 76 RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \ 77 && add-apt-repository \ 78 "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ 79 $(lsb_release -cs) \ 80 stable" 81 82 RUN apt-get update && apt-get install -y -q \ 83 docker-ce \ 84 && apt-get clean \ 85 && rm -rf /var/lib/apt/lists/* 86 87 EXPOSE 4004/tcp 88 EXPOSE 8008 89 90 RUN mkdir -p /project/sawtooth-core/ \ 91 && mkdir -p /var/log/sawtooth \ 92 && mkdir -p /var/lib/sawtooth \ 93 && mkdir -p /etc/sawtooth \ 94 && mkdir -p /etc/sawtooth/keys 95 96 ENV PATH=$PATH:/project/sawtooth-core/bin 97 98 RUN curl -sL https://repos.influxdata.com/influxdb.key | apt-key add - 99 RUN echo deb https://repos.influxdata.com/ubuntu xenial stable > /etc/apt/sources.list.d/influxdb.list 100 RUN apt-get update && apt-get install -y -q \ 101 telegraf \ 102 && apt-get clean \ 103 && rm -rf /var/lib/apt/lists/* 104 105 COPY telegraf.conf /etc/telegraf/telegraf.conf 106 107 WORKDIR /project/sawtooth-core