This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathbuild-docs-base.dockerfile
66 lines (58 loc) · 2.27 KB
/
build-docs-base.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
from ubuntu:18.04
workdir /root
run apt-get update && apt-get install -y wget gnupg
run wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
run echo '\n\
deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main\n\
deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic main\n\
deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main\n\
deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main\n' >>/etc/apt/sources.list
run apt-get update && apt-get install -y \
autoconf2.13 \
build-essential \
bzip2 \
cargo \
clang-8 \
cmake \
git \
libboost-all-dev \
libgmp-dev \
libpq-dev \
lld-8 \
lldb-8 \
ninja-build \
nodejs \
npm \
pkg-config \
postgresql-server-dev-all \
python2.7-dev \
python3-dev \
rustc \
zlib1g-dev
run update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 100
run update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-8 100
workdir /root
run git clone https://github.com/EOSIO/eosio.cdt.git
workdir /root/eosio.cdt
run git checkout v1.6.2
run git submodule update --init --recursive
run mkdir build
workdir /root/eosio.cdt/build
run cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/eosio.cdt
run ninja
run ninja install
# Hack in headers that standardese needs
run cp -a /root/eosio.cdt/eosio_llvm/tools/clang/include/clang* /root/eosio.cdt/eosio_llvm/include
# standardese
workdir /root
run git clone https://github.com/foonathan/standardese.git
workdir /root/standardese
run git checkout 296b92ee52f0a03b6a9b5f52dbee2decaef4a545
run mkdir /root/standardese/build
workdir /root/standardese/build
run cmake -GNinja -DSTANDARDESE_BUILD_TEST=off -DLLVM_CONFIG_BINARY=/root/eosio.cdt/build/eosio_llvm/bin/llvm-config -DCMAKE_BUILD_TYPE=Debug ..
run ninja
run cp -a tool/standardese /usr/local/bin
# gitbook
run npm i -g gitbook-cli
run npm i -g jsdoc-to-markdown