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 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7813 from EOSIO/trav-poc-pinned
Trav poc pinned
- Loading branch information
Showing
12 changed files
with
618 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
brew update | ||
brew install git [email protected] cmake python@2 python libtool libusb graphviz automake wget gmp llvm@4 pkgconfig doxygen openssl mongodb ccache | ||
git clone --single-branch --branch release_80 https://git.llvm.org/git/llvm.git clang8 | ||
cd clang8 | ||
git checkout 18e41dc | ||
cd tools | ||
git clone --single-branch --branch release_80 https://git.llvm.org/git/lld.git | ||
cd lld | ||
git checkout d60a035 | ||
cd ../ | ||
git clone --single-branch --branch release_80 https://git.llvm.org/git/polly.git | ||
cd polly | ||
git checkout 1bc06e5 | ||
cd ../ | ||
git clone --single-branch --branch release_80 https://git.llvm.org/git/clang.git clang | ||
cd clang | ||
git checkout a03da8b | ||
cd tools | ||
mkdir extra | ||
cd extra | ||
git clone --single-branch --branch release_80 https://git.llvm.org/git/clang-tools-extra.git | ||
cd clang-tools-extra | ||
git checkout 6b34834 | ||
cd ../../../../../projects/ | ||
git clone --single-branch --branch release_80 https://git.llvm.org/git/libcxx.git | ||
cd libcxx | ||
git checkout 1853712 | ||
cd ../ | ||
git clone --single-branch --branch release_80 https://git.llvm.org/git/libcxxabi.git | ||
cd libcxxabi | ||
git checkout d7338a4 | ||
cd ../ | ||
git clone --single-branch --branch release_80 https://git.llvm.org/git/libunwind.git | ||
cd libunwind | ||
git checkout 57f6739 | ||
cd ../ | ||
git clone --single-branch --branch release_80 https://git.llvm.org/git/compiler-rt.git | ||
cd compiler-rt | ||
git checkout 5bc7979 | ||
mkdir ../../build | ||
cd ../../build | ||
cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX='/usr/local' -DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_ENABLE_LIBCXX=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_INCLUDE_DOCS=OFF -DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Release .. | ||
make -j $(getconf _NPROCESSORS_ONLN) | ||
sudo make install | ||
cd ../.. | ||
rm -rf clang8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
FROM amazonlinux:2.0.20190508 | ||
# install dependencies. | ||
RUN yum update -y && \ | ||
yum install -y which git sudo procps-ng util-linux autoconf automake \ | ||
libtool make bzip2 bzip2-devel openssl-devel gmp-devel libstdc++ libcurl-devel \ | ||
libusbx-devel python3 python3-devel python-devel libedit-devel doxygen \ | ||
graphviz clang patch | ||
# build cmake. | ||
RUN curl -LO https://cmake.org/files/v3.13/cmake-3.13.2.tar.gz && \ | ||
tar -xzf cmake-3.13.2.tar.gz && \ | ||
cd cmake-3.13.2 && \ | ||
./bootstrap --prefix=/usr/local && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
cd / && \ | ||
rm -rf cmake-3.13.2.tar.gz /cmake-3.13.2 | ||
# build llvm | ||
RUN git clone --depth 1 --single-branch --branch release_40 https://github.com/llvm-mirror/llvm.git llvm && \ | ||
cd 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 .. && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
cd / && \ | ||
rm -rf /llvm | ||
# build boost | ||
RUN curl -LO https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.bz2 && \ | ||
tar -xjf boost_1_70_0.tar.bz2 && \ | ||
cd boost_1_70_0 && \ | ||
./bootstrap.sh --prefix=/usr/local && \ | ||
./b2 --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_70_0.tar.bz2 /boost_1_70_0 | ||
# build mongodb | ||
RUN curl -LO https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-amazon-3.6.3.tgz && \ | ||
tar -xzf mongodb-linux-x86_64-amazon-3.6.3.tgz && \ | ||
rm -f mongodb-linux-x86_64-amazon-3.6.3.tgz | ||
# build mongodb c driver | ||
RUN curl -LO https://github.com/mongodb/mongo-c-driver/releases/download/1.13.0/mongo-c-driver-1.13.0.tar.gz && \ | ||
tar -xzf mongo-c-driver-1.13.0.tar.gz && \ | ||
cd mongo-c-driver-1.13.0 && \ | ||
mkdir -p build && \ | ||
cd build && \ | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_BSON=ON -DENABLE_SSL=OPENSSL -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF -DENABLE_STATIC=ON -DENABLE_ICU=OFF -DENABLE_SNAPPY=OFF .. && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
cd / && \ | ||
rm -rf mongo-c-driver-1.13.0.tar.gz /mongo-c-driver-1.13.0 | ||
# build mongodb cxx driver | ||
RUN curl -L https://github.com/mongodb/mongo-cxx-driver/archive/r3.4.0.tar.gz -o mongo-cxx-driver-r3.4.0.tar.gz && \ | ||
tar -xzf mongo-cxx-driver-r3.4.0.tar.gz && \ | ||
cd mongo-cxx-driver-r3.4.0 && \ | ||
sed -i 's/\"maxAwaitTimeMS\", count/\"maxAwaitTimeMS\", static_cast<int64_t>(count)/' src/mongocxx/options/change_stream.cpp && \ | ||
sed -i 's/add_subdirectory(test)//' src/mongocxx/CMakeLists.txt src/bsoncxx/CMakeLists.txt && \ | ||
cd build && \ | ||
cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local .. && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
cd / && \ | ||
rm -rf mongo-cxx-driver-r3.4.0.tar.gz /mongo-cxx-driver-r3.4.0 | ||
# add mongodb to path | ||
ENV PATH=${PATH}:/mongodb-linux-x86_64-amazon-3.6.3/bin | ||
# install ccache | ||
RUN curl -LO http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/c/ccache-3.3.4-1.el7.x86_64.rpm && \ | ||
yum install -y ccache-3.3.4-1.el7.x86_64.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
FROM centos:7.6.1810 | ||
# install dependencies. | ||
RUN yum update -y && \ | ||
yum --enablerepo=extras install -y centos-release-scl && \ | ||
yum --enablerepo=extras install -y devtoolset-8 && \ | ||
yum --enablerepo=extras install -y which git autoconf automake libtool make bzip2 doxygen \ | ||
graphviz bzip2-devel openssl-devel gmp-devel ocaml libicu-devel \ | ||
python python-devel rh-python36 gettext-devel file libusbx-devel \ | ||
libcurl-devel patch | ||
# build cmake. | ||
RUN curl -LO https://cmake.org/files/v3.13/cmake-3.13.2.tar.gz && \ | ||
source /opt/rh/devtoolset-8/enable && \ | ||
source /opt/rh/rh-python36/enable && \ | ||
tar -xzf cmake-3.13.2.tar.gz && \ | ||
cd cmake-3.13.2 && \ | ||
./bootstrap --prefix=/usr/local && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
cd / && \ | ||
rm -rf cmake-3.13.2.tar.gz /cmake-3.13.2 | ||
# build llvm | ||
RUN git clone --depth 1 --single-branch --branch release_40 https://github.com/llvm-mirror/llvm.git llvm && \ | ||
source /opt/rh/devtoolset-8/enable && \ | ||
source /opt/rh/rh-python36/enable && \ | ||
cd 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 .. && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
cd / && \ | ||
rm -rf /llvm | ||
# build boost | ||
RUN curl -LO https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.bz2 && \ | ||
source /opt/rh/devtoolset-8/enable && \ | ||
source /opt/rh/rh-python36/enable && \ | ||
tar -xjf boost_1_70_0.tar.bz2 && \ | ||
cd boost_1_70_0 && \ | ||
./bootstrap.sh --prefix=/usr/local && \ | ||
./b2 --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_70_0.tar.bz2 /boost_1_70_0 | ||
# build mongodb | ||
RUN curl -LO https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-amazon-3.6.3.tgz && \ | ||
tar -xzf mongodb-linux-x86_64-amazon-3.6.3.tgz && \ | ||
rm -f mongodb-linux-x86_64-amazon-3.6.3.tgz | ||
# build mongodb c driver | ||
RUN curl -LO https://github.com/mongodb/mongo-c-driver/releases/download/1.13.0/mongo-c-driver-1.13.0.tar.gz && \ | ||
source /opt/rh/devtoolset-8/enable && \ | ||
source /opt/rh/rh-python36/enable && \ | ||
tar -xzf mongo-c-driver-1.13.0.tar.gz && \ | ||
cd mongo-c-driver-1.13.0 && \ | ||
mkdir -p build && \ | ||
cd build && \ | ||
cmake --DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_BSON=ON -DENABLE_SSL=OPENSSL -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF -DENABLE_STATIC=ON -DENABLE_ICU=OFF -DENABLE_SNAPPY=OFF .. && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
cd / && \ | ||
rm -rf mongo-c-driver-1.13.0.tar.gz /mongo-c-driver-1.13.0 | ||
# build mongodb cxx driver | ||
RUN curl -L https://github.com/mongodb/mongo-cxx-driver/archive/r3.4.0.tar.gz -o mongo-cxx-driver-r3.4.0.tar.gz && \ | ||
source /opt/rh/devtoolset-8/enable && \ | ||
source /opt/rh/rh-python36/enable && \ | ||
tar -xzf mongo-cxx-driver-r3.4.0.tar.gz && \ | ||
cd mongo-cxx-driver-r3.4.0 && \ | ||
sed -i 's/\"maxAwaitTimeMS\", ount/\"maxAwaitTimeMS\", static_cast<int64_t>(count)/' src/mongocxx/options/change_stream.cpp && \ | ||
sed -i 's/add_subdirectory(test)//' src/mongocxx/CMakeLists.txt src/bsoncxx/CMakeLists.txt && \ | ||
cd build && \ | ||
cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local .. && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
cd / && \ | ||
rm -rf mongo-cxx-driver-r3.4.0.tar.gz /mongo-cxx-driver-r3.4.0 | ||
# add mongodb to path | ||
ENV PATH=${PATH}:/mongodb-linux-x86_64-amazon-3.6.3/bin | ||
# install ccache | ||
RUN curl -LO http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/c/ccache-3.3.4-1.el7.x86_64.rpm && \ | ||
yum install -y ccache-3.3.4-1.el7.x86_64.rpm | ||
# fix ccache for centos | ||
RUN cd /usr/lib64/ccache && ln -s ../../bin/ccache c++ | ||
ENV CCACHE_PATH="/opt/rh/devtoolset-8/root/usr/bin" |
Oops, something went wrong.