github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-supply-chain-master/docker/supply-chain-dev-rust (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 LABEL "install-type"="mounted" 18 19 RUN echo "deb http://repo.sawtooth.me/ubuntu/ci xenial universe" >> /etc/apt/sources.list \ 20 && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD \ 21 && apt-get update \ 22 && apt-get install -y -q --allow-downgrades \ 23 build-essential \ 24 curl \ 25 libssl-dev \ 26 gcc \ 27 libzmq3-dev \ 28 openssl \ 29 pkg-config \ 30 python3-grpcio-tools=1.1.3-1 \ 31 unzip \ 32 && apt-get clean \ 33 && rm -rf /var/lib/apt/lists/* 34 35 RUN curl -OLsS https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip \ 36 && unzip protoc-3.5.1-linux-x86_64.zip -d protoc3 \ 37 && rm protoc-3.5.1-linux-x86_64.zip 38 39 RUN curl https://sh.rustup.rs -sSf > /usr/bin/rustup-init \ 40 && chmod +x /usr/bin/rustup-init \ 41 && rustup-init -y 42 43 ENV PATH=$PATH:/protoc3/bin:project/sawtooth-supply-chain/bin:/root/.cargo/bin \ 44 CARGO_INCREMENTAL=0 45 46 WORKDIR / 47 48 CMD build_rust