github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/validator/tests/validator-tests.dockerfile (about) 1 # Copyright 2018 Cargill Incorporated 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 FROM ubuntu:xenial 16 17 RUN echo "deb http://repo.sawtooth.me/ubuntu/ci xenial universe" >> /etc/apt/sources.list \ 18 && (apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD \ 19 || apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 8AA7AF1F1091A5FD) \ 20 && apt-get update 21 22 RUN apt-get install -y -q --allow-downgrades \ 23 git \ 24 python3 \ 25 python3-stdeb 26 27 RUN apt-get install -y -q --allow-downgrades \ 28 python3-grpcio \ 29 python3-grpcio-tools \ 30 python3-protobuf 31 32 RUN apt-get install -y -q --allow-downgrades \ 33 python3-aiohttp \ 34 python3-cbor \ 35 python3-colorlog \ 36 python3-cryptography-vectors=1.7.2-1 \ 37 python3-cryptography>=1.7.1 \ 38 python3-dev \ 39 python3-lmdb \ 40 python3-netifaces=0.10.4-0.1build2 \ 41 python3-pyformance \ 42 python3-secp256k1 \ 43 python3-toml \ 44 python3-yaml \ 45 python3-zmq \ 46 unzip 47 48 RUN apt-get install -y -q \ 49 python3-cov-core \ 50 python3-nose2 \ 51 python3-pip 52 53 RUN pip3 install \ 54 coverage --upgrade 55 56 RUN curl -OLsS https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip \ 57 && unzip protoc-3.5.1-linux-x86_64.zip -d protoc3 \ 58 && rm protoc-3.5.1-linux-x86_64.zip 59 60 RUN curl https://sh.rustup.rs -sSf > /usr/bin/rustup-init \ 61 && chmod +x /usr/bin/rustup-init \ 62 && rustup-init -y 63 64 ENV PATH=$PATH:/project/sawtooth-core/bin:/protoc3/bin:/root/.cargo/bin \ 65 CARGO_INCREMENTAL=0 66 67 RUN ln -s /usr/bin/python3 /usr/bin/python 68 69 RUN mkdir -p /etc/sawtooth/keys 70 RUN mkdir -p /var/lib/sawtooth 71 RUN mkdir -p /var/log/sawtooth 72 73 ENV PATH=$PATH:/project/sawtooth-core/bin 74 75 WORKDIR /project/sawtooth-core