Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add Ubuntu 20.04 cicd dockerfiles/buildscripts-develop #9364

Merged
merged 30 commits into from
Aug 24, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9c8752b
added ubuntu 20.04 unpinned dockerfile
vcgundlach Aug 6, 2020
57dd57f
added ubuntu 20.04 to build scripts
ndcgundlach Aug 6, 2020
e76039b
added pinned ubuntu 20.04 dockerfile
ndcgundlach Aug 6, 2020
0970ed5
updated to set to noninteractive'
ndcgundlach Aug 10, 2020
b422b09
added non-interactive to build script command line
ndcgundlach Aug 10, 2020
953314b
added apt cleanup and try again on noninteractive
ndcgundlach Aug 11, 2020
f6aa205
put noninteractive into env
ndcgundlach Aug 11, 2020
adff1bb
took out frontend setting from command line
ndcgundlach Aug 11, 2020
fbafd1b
added timezone
ndcgundlach Aug 11, 2020
15e7ce9
added -y to update
ndcgundlach Aug 11, 2020
6f04cec
move the -y to the correct build
ndcgundlach Aug 11, 2020
04b2461
setting timezone before running build script
ndcgundlach Aug 11, 2020
0f68ff3
added explicit install of tzdata
ndcgundlach Aug 11, 2020
eb9d272
added link for local timezone
ndcgundlach Aug 11, 2020
ca238d4
added tzdata fix to pinned build
ndcgundlach Aug 17, 2020
8737299
added tzdata fix; updated to more streamlined node install
ndcgundlach Aug 17, 2020
b364148
fixed typo
ndcgundlach Aug 17, 2020
e3549a4
fixed typo
ndcgundlach Aug 17, 2020
8f6ff9e
added gnupg package
ndcgundlach Aug 17, 2020
a74470b
added build environment variable
ndcgundlach Aug 17, 2020
c3cd17c
added build environment variable
ndcgundlach Aug 17, 2020
60b3103
added llvm10
ndcgundlach Aug 17, 2020
0a5ae15
added debug info for clang++ version
ndcgundlach Aug 17, 2020
264cc6f
took out debug info
ndcgundlach Aug 17, 2020
4b48878
added install for gcc
ndcgundlach Aug 18, 2020
716bee5
changed gcc install to g++
ndcgundlach Aug 18, 2020
e9e77b3
added gnupg package install
ndcgundlach Aug 18, 2020
f7c18d8
removed TZ environment variable
ndcgundlach Aug 19, 2020
c974e54
removed nvm
ndcgundlach Aug 19, 2020
66d88ee
removed nvm layer
ndcgundlach Aug 21, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .cicd/build-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,17 @@ steps:
- "./scripts/eosio_build.sh -P -y"
timeout: 180


- label: ":ubuntu: Ubuntu 20.04 - Build Pinned"
plugins:
- docker#v3.3.0:
image: "ubuntu:20.04"
always-pull: true
agents:
queue: "automation-eks-eos-builder-fleet"
command:
- "apt update && apt upgrade -y && apt install -y git"
- "./scripts/eosio_build.sh -P -y"
timeout: 180

- label: ":aws: Amazon_Linux 2 - Build UnPinned"
plugins:
Expand Down Expand Up @@ -189,4 +199,16 @@ steps:
command:
- "apt update && apt upgrade -y && apt install -y git"
- "./scripts/eosio_build.sh -y"
timeout: 180
timeout: 180

- label: ":ubuntu: Ubuntu 20.04 - Build UnPinned"
plugins:
- docker#v3.3.0:
image: "ubuntu:20.04"
always-pull: true
agents:
queue: "automation-eks-eos-builder-fleet"
command:
- "apt update && apt upgrade -y && apt install -y git"
- "./scripts/eosio_build.sh -y"
timeout: 180
58 changes: 58 additions & 0 deletions .cicd/platforms/pinned/ubuntu-20.04-pinned.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
FROM ubuntu:20.04
ENV VERSION 1
# install dependencies.
RUN apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y git make \
bzip2 automake libbz2-dev libssl-dev doxygen graphviz libgmp3-dev \
autotools-dev python2.7 python2.7-dev python3 \
python3-dev python-configparser \
autoconf libtool g++ gcc curl zlib1g-dev sudo ruby libusb-1.0-0-dev \
libcurl4-gnutls-dev pkg-config patch vim-common jq
ndcgundlach marked this conversation as resolved.
Show resolved Hide resolved
# build cmake
RUN curl -LO https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2.tar.gz && \
tar -xzf cmake-3.16.2.tar.gz && \
cd cmake-3.16.2 && \
./bootstrap --prefix=/usr/local && \
make -j$(nproc) && \
make install && \
rm -rf cmake-3.16.2.tar.gz cmake-3.16.2
# build clang10
RUN git clone --single-branch --branch llvmorg-10.0.0 https://github.com/llvm/llvm-project clang10 && \
mkdir /clang10/build && cd /clang10/build && \
cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX='/usr/local' -DLLVM_ENABLE_PROJECTS='lld;polly;clang;clang-tools-extra;libcxx;libcxxabi;libunwind;compiler-rt' -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_INCLUDE_DOCS=OFF -DLLVM_TARGETS_TO_BUILD=host -DCMAKE_BUILD_TYPE=Release ../llvm && \
make -j $(nproc) && \
make install && \
cd / && \
rm -rf /clang10
COPY ./.cicd/helpers/clang.make /tmp/clang.cmake
# build llvm10
RUN git clone --depth 1 --single-branch --branch llvmorg-10.0.0 https://github.com/llvm/llvm-project llvm && \
cd llvm/llvm && \
mkdir build && \
cd build && \
cmake -G 'Unix Makefiles' -DLLVM_TARGETS_TO_BUILD=host -DLLVM_BUILD_TOOLS=false -DLLVM_ENABLE_RTTI=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_TOOLCHAIN_FILE='/tmp/clang.cmake' -DCMAKE_EXE_LINKER_FLAGS=-pthread -DCMAKE_SHARED_LINKER_FLAGS=-pthread -DLLVM_ENABLE_PIC=NO -DLLVM_ENABLE_TERMINFO=OFF .. && \
make -j$(nproc) && \
make install && \
cd / && \
rm -rf /llvm
# build boost
RUN curl -LO https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.bz2 && \
tar -xjf boost_1_72_0.tar.bz2 && \
cd boost_1_72_0 && \
./bootstrap.sh --with-toolset=clang --prefix=/usr/local && \
./b2 toolset=clang cxxflags='-stdlib=libc++ -D__STRICT_ANSI__ -nostdinc++ -I/usr/local/include/c++/v1 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fpie' linkflags='-stdlib=libc++ -pie' link=static threading=multi --with-iostreams --with-date_time --with-filesystem --with-system --with-program_options --with-chrono --with-test -q -j$(nproc) install && \
cd / && \
rm -rf boost_1_72_0.tar.bz2 /boost_1_72_0
# install nvm
ndcgundlach marked this conversation as resolved.
Show resolved Hide resolved
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
# load nvm in non-interactive shells
RUN cp ~/.bashrc ~/.bashrc.bak && \
cat ~/.bashrc.bak | tail -3 > ~/.bashrc && \
cat ~/.bashrc.bak | head -n '-3' >> ~/.bashrc && \
rm ~/.bashrc.bak
# install node 10
RUN bash -c '. ~/.bashrc; nvm install --lts=dubnium' && \
ln -s "/root/.nvm/versions/node/$(ls -p /root/.nvm/versions/node | sort -Vr | head -1)bin/node" /usr/local/bin/node
RUN curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
RUN sudo apt-get install -y nodejs
38 changes: 38 additions & 0 deletions .cicd/platforms/unpinned/ubuntu-20.04-unpinned.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM ubuntu:20.04
ENV VERSION 1
# install dependencies.
RUN apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y git make \
bzip2 automake libbz2-dev libssl-dev doxygen graphviz libgmp3-dev \
autotools-dev python2.7 python2.7-dev python3 python3-dev \
autoconf libtool curl zlib1g-dev sudo ruby libusb-1.0-0-dev \
libcurl4-gnutls-dev pkg-config patch llvm-7-dev clang-7 vim-common jq g++
# build cmake
RUN curl -LO https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2.tar.gz && \
tar -xzf cmake-3.16.2.tar.gz && \
cd cmake-3.16.2 && \
./bootstrap --prefix=/usr/local && \
make -j$(nproc) && \
make install && \
rm -rf cmake-3.16.2.tar.gz cmake-3.16.2
# build boost
RUN curl -LO https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2 && \
tar -xjf boost_1_71_0.tar.bz2 && \
cd boost_1_71_0 && \
./bootstrap.sh --prefix=/usr/local && \
./b2 --with-iostreams --with-date_time --with-filesystem --with-system --with-program_options --with-chrono --with-test -j$(nproc) install && \
cd / && \
rm -rf boost_1_71_0.tar.bz2 /boost_1_71_0
# install nvm
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
# load nvm in non-interactive shells
RUN cp ~/.bashrc ~/.bashrc.bak && \
cat ~/.bashrc.bak | tail -3 > ~/.bashrc && \
cat ~/.bashrc.bak | head -n '-3' >> ~/.bashrc && \
rm ~/.bashrc.bak
ndcgundlach marked this conversation as resolved.
Show resolved Hide resolved
# install node 10
RUN bash -c '. ~/.bashrc; nvm install --lts=dubnium' && \
ln -s "/root/.nvm/versions/node/$(ls -p /root/.nvm/versions/node | sort -Vr | head -1)bin/node" /usr/local/bin/node
RUN curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
RUN sudo apt-get install -y nodejs