github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-supply-chain-master/docs/supply-chain-build-docs (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  # Description:
    17  #   Builds the environment needed to build the Sawtooth Supply Chain docs
    18  #   Running the image will put the docs in
    19  #   sawtooth-supply-chain/docs/build on your local machine.
    20  #
    21  # Build:
    22  #   $ cd sawtooth-supply-chain
    23  #   $ docker build . -f docs/supply-chain-build-docs -t supply-chain-build-docs
    24  #
    25  # Run:
    26  #   $ cd sawtooth-supply-chain
    27  #   $ docker run -v $(pwd):/project/sawtooth-supply-chain supply-chain-build-docs
    28  
    29  FROM ubuntu:xenial
    30  
    31  RUN echo "deb http://repo.sawtooth.me/ubuntu/ci xenial universe" >> /etc/apt/sources.list \
    32   && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8AA7AF1F1091A5FD \
    33   && apt-get update \
    34   && apt-get install -y -q --allow-downgrades \
    35      build-essential \
    36      git \
    37      pep8 \
    38      python3-colorlog \
    39      python3-dev \
    40      python3-pip \
    41      python3-protobuf \
    42   && apt-get clean \
    43   && rm -rf /var/lib/apt/lists/* \
    44   && pip3 install \
    45      pylint \
    46      bandit
    47  
    48  # Install jsdoc
    49  RUN apt-get update && apt-get install -y -q --no-install-recommends \
    50      curl \
    51   && curl -s -S -o /tmp/setup-node.sh https://deb.nodesource.com/setup_6.x \
    52   && chmod 755 /tmp/setup-node.sh \
    53   && /tmp/setup-node.sh \
    54   && apt-get install nodejs -y -q \
    55   && rm /tmp/setup-node.sh \
    56   && apt-get clean \
    57   && rm -rf /var/lib/apt/lists/* \
    58   && npm install -g \
    59      jsdoc
    60  
    61  RUN apt-get update && apt-get install -y -q \
    62      dvipng \
    63      make \
    64      sudo \
    65      texlive-fonts-recommended \
    66      texlive-latex-base \
    67      texlive-latex-extra \
    68      texlive-latex-recommended \
    69      zip \
    70      && apt-get clean \
    71      && rm -rf /var/lib/apt/lists/* \
    72      && pip3 install \
    73      sphinx==1.5.6 \
    74      sphinxcontrib-httpdomain \
    75      sphinxcontrib-openapi \
    76      sphinx_rtd_theme
    77  
    78  WORKDIR /project/sawtooth-supply-chain/docs
    79  CMD make html latexpdf