github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/ci/sawtooth-meta (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 # docker build -f ci/sawtooth-meta -t sawtooth-meta . 16 17 # -------------=== sawtooth-meta build ===------------- 18 FROM ubuntu:xenial as sawtooth-meta-builder 19 20 ENV VERSION=AUTO_STRICT 21 22 RUN apt-get update \ 23 && apt-get install -q -y \ 24 equivs \ 25 git \ 26 python3 27 28 COPY . /project 29 30 RUN cd /project/ci \ 31 && VERSION=$(/project/bin/get_version) \ 32 && sed -i -e"s/@VERSION@/$VERSION/" ns-control \ 33 && equivs-build ns-control 34 35 # -------------=== sawtooth-meta docker build ===------------- 36 FROM ubuntu:xenial 37 38 COPY --from=sawtooth-meta-builder /project/ci/sawtooth*.deb /tmp 39 40 RUN echo "deb http://repo.sawtooth.me/ubuntu/ci xenial universe" >> /etc/apt/sources.list \ 41 && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD \ 42 && apt-get update \ 43 && dpkg -i /tmp/sawtooth*.deb || true \ 44 && apt-get -f -y install \ 45 && apt-get clean \ 46 && rm -rf /var/lib/apt/lists/*