-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#82 upgrade compiler to C++17 - docker files
- Loading branch information
Showing
9 changed files
with
133 additions
and
70 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
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,29 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
if [[ ${BOOST_VERSION} != 'default' ]]; then | ||
readonly BOOST_URL="https://dl.bintray.com/boostorg/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION//\./_}.tar.gz" | ||
readonly BOOST_DEPS_DIR="${DEPS_DIR}/boost-${BOOST_VERSION}" | ||
readonly BOOST_BUILD_DIR="${BUILD_DIR}/boost-${BOOST_VERSION}" | ||
readonly BOOST_TOOLSET=gcc | ||
readonly BOOST_LIBS='program_options,system,regex,serialization,log,date_time,test,filesystem' | ||
|
||
$(type -P rm) -rf "${BOOST_BUILD_DIR}" | ||
$(type -P mkdir) -p "${BOOST_BUILD_DIR}" | ||
|
||
$(type -P wget) --no-check-certificate --quiet -O - "${BOOST_URL}" | $(type -P tar) --strip-components=1 -xz -C "${BOOST_BUILD_DIR}" | ||
|
||
cd "${BOOST_BUILD_DIR}" | ||
./bootstrap.sh --with-libraries="${BOOST_LIBS}" --with-toolset="${BOOST_TOOLSET}" || { cat bootstrap.log; exit 1; } | ||
./b2 -d0 -q toolset="${BOOST_TOOLSET}" variant=release link=shared threading=multi runtime-link=shared install --prefix="${BOOST_DEPS_DIR}" | ||
|
||
$(type -P rm) -rf "${BOOST_BUILD_DIR}" | ||
$(type -P rmdir) --ignore-fail-on-non-empty "${BUILD_DIR}" | ||
|
||
export CMAKE_OPTIONS+=" -DBOOST_ROOT='${BOOST_DEPS_DIR}'" | ||
|
||
echo "Boost v${BOOST_VERSION} installed to ${BOOST_DEPS_DIR}" | ||
else | ||
echo "Nothing done - using the default Boost installation" | ||
fi |
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 |
---|---|---|
@@ -1,16 +1,4 @@ | ||
FROM debian:unstable | ||
FROM ubuntu:latest | ||
LABEL Description="VanillaRTB Base" Vendor="ForkBid" Maintainer="mrbald@github" | ||
RUN apt-get update && apt-get install -y apt-utils | ||
RUN apt-get install -yq\ | ||
libboost-atomic1.67\ | ||
libboost-chrono1.67\ | ||
libboost-date-time1.67\ | ||
libboost-filesystem1.67\ | ||
libboost-log1.67\ | ||
libboost-program-options1.67\ | ||
libboost-regex1.67\ | ||
libboost-serialization1.67\ | ||
libboost-system1.67\ | ||
libboost-thread1.67 | ||
|
||
RUN apt-get update && apt-get -yq --no-install-suggests --no-install-recommends install -y apt-utils | ||
CMD ["bash"] |
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,16 @@ | ||
FROM vanillartb/vanilla-base:0.0.2 | ||
ARG BOOST_VERSION=1.67.0 | ||
ARG WORK_ROOT=/root | ||
LABEL Description="VanillaRTB Dependencies Builder" Vendor="ForkBid" Maintainer="mrbald@github" | ||
RUN apt-get install -yq --no-install-suggests --no-install-recommends wget build-essential g++-7 | ||
ENV CC=gcc-7 CXX=g++-7 | ||
|
||
WORKDIR ${WORK_ROOT}/scripts | ||
ADD build-boost.sh ${WORK_ROOT}/scripts | ||
RUN chmod +x ${WORK_ROOT}/scripts/build-boost.sh && sync | ||
|
||
WORKDIR ${WORK_ROOT}/deps | ||
WORKDIR ${WORK_ROOT}/build | ||
RUN env DEPS_DIR=${WORK_ROOT}/deps BUILD_DIR=${WORK_ROOT}/build BOOST_VERSION=${BOOST_VERSION} ${WORK_ROOT}/scripts/build-boost.sh | ||
|
||
CMD ["bash"] |
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 |
---|---|---|
@@ -1,33 +1,20 @@ | ||
FROM vanillartb/vanilla-base:0.0.2 | ||
FROM vanillartb/vanilla-runtime:0.0.2 | ||
ARG BOOST_VERSION=1.67.0 | ||
ARG VANILLA_RTB_VERSION=snapshot | ||
ARG WORK_ROOT=/root | ||
LABEL Description="vanilla-rtb Dev" Vendor="ForkBid" Maintainer="mrbald@github" | ||
RUN apt-get update | ||
RUN apt-get install -y\ | ||
cmake\ | ||
git\ | ||
clang\ | ||
vim\ | ||
libboost-atomic1.67-dev\ | ||
libboost-chrono1.67-dev\ | ||
libboost-date-time1.67-dev\ | ||
libboost-filesystem1.67-dev\ | ||
libboost-log1.67-dev\ | ||
libboost-program-options1.67-dev\ | ||
libboost-regex1.67-dev\ | ||
libboost-serialization1.67-dev\ | ||
libboost-system1.67-dev\ | ||
libboost-thread1.67-dev\ | ||
libboost-test1.67\ | ||
libboost-test1.67-dev\ | ||
python | ||
RUN apt-get install -yq --no-install-suggests --no-install-recommends make cmake git build-essential g++-7 vim python | ||
ENV CC=gcc-7 CXX=g++-7 | ||
|
||
WORKDIR /root/pkg | ||
WORKDIR /root/build | ||
WORKDIR /root/code | ||
WORKDIR ${WORK_ROOT}/scripts | ||
ADD build-vanilla.sh ${WORK_ROOT}/scripts | ||
RUN chmod +x ${WORK_ROOT}/scripts/build-vanilla.sh && sync | ||
|
||
ADD build-vanilla.sh /root/code | ||
WORKDIR ${WORK_ROOT}/deps | ||
WORKDIR ${WORK_ROOT}/build | ||
RUN env VANILLA_RTB_VERSION=${VANILLA_RTB_VERSION} PKG_DIR=${WORK_ROOT}/pkg DEPS_DIR=${WORK_ROOT}/deps BUILD_DIR=${WORK_ROOT}/build BOOST_VERSION=${BOOST_VERSION} ${WORK_ROOT}/scripts/build-vanilla.sh | ||
|
||
RUN chmod +x ./build-vanilla.sh && sync && ./build-vanilla.sh | ||
|
||
WORKDIR /root/pkg/vanilla-rtb/snapshot/bin | ||
WORKDIR /root/pkg/vanilla-rtb-${VANILLA_RTB_VERSION}/bin | ||
|
||
CMD ["bash"] |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM vanillartb/vanilla-base:0.0.2 | ||
FROM vanillartb/vanilla-runtime:0.0.2 | ||
ARG VANILLA_RTB_VERSION=snapshot | ||
ARG WORK_ROOT=/root | ||
LABEL Description="VanillaRTB Prod" Vendor="ForkBid" Maintainer="mrbald@github" | ||
WORKDIR /root/pkg/vanilla | ||
ADD vanilla . | ||
ADD pkg ${WORK_ROOT}/pkg | ||
WORKDIR ${WORK_ROOT}/pkg/vanilla-rtb-${VANILLA_RTB_VERSION}/bin | ||
CMD ["bash"] |
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,6 @@ | ||
FROM vanillartb/vanilla-base:0.0.2 | ||
ARG BOOST_VERSION=1.67.0 | ||
ARG WORK_ROOT=/root | ||
LABEL Description="VanillaRTB Runtime" Vendor="ForkBid" Maintainer="mrbald@github" | ||
ADD deps ${WORK_ROOT}/deps | ||
CMD ["bash"] |