additional dockerfiles for testing

This commit is contained in:
sdarwin
2020-07-16 18:15:26 +00:00
committed by Richard Hodges
parent 28a7a99e75
commit b168f6242d
22 changed files with 301 additions and 6 deletions

View File

@@ -0,0 +1,19 @@
FROM centos:7
RUN yum update -y
RUN yum install -y epel-release
RUN yum -y groupinstall "Development Tools"
RUN yum install -y cmake openssl-devel clang libcxx-devel libcxxabi-devel bzip2-devel which zlib-devel
WORKDIR /devel
RUN git clone -b develop https://github.com/boostorg/boost.git
COPY .dockers/centos-7/user-config.jam /devel/boost/
COPY .dockers/centos-7/tests.sh /devel/boost/
WORKDIR /devel/boost
RUN git submodule update --init --recursive
COPY . /devel/boost/libs/beast/
RUN ./bootstrap.sh
RUN ./b2 toolset=gcc variant=release cxxstd=latest headers
RUN ./tests.sh || true

14
.dockers/centos-7/tests.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
#cxxstd=2a,17,14,11 \
./b2 --user-config=./user-config.jam \
toolset=clang,gcc \
asio.mode=dflt,nodep,nots,ts,nodep-nots,nodep-ts \
variant=release \
cxxstd=11 \
-j`grep processor /proc/cpuinfo | wc -l` \
-q \
libs/beast/test libs/beast/example

View File

@@ -0,0 +1,11 @@
import feature ;
feature.feature asio.mode : dflt nodep nots ts nodep-nots nodep-ts : propagated composite ;
feature.compose <asio.mode>nodep : <define>"BOOST_ASIO_NO_DEPRECATED" ;
feature.compose <asio.mode>nots : <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>ts : <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
feature.compose <asio.mode>nodep-nots : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>nodep-ts : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
using clang : : clang++ : <stdlib>"libc++" <cxxflags>"-Wno-c99-extensions" ;
using gcc : : g++ : <cxxflags>"-Wno-c99-extensions" ;

View File

@@ -0,0 +1,19 @@
FROM debian:10
RUN apt-get update
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
RUN apt-get install -y build-essential
RUN apt-get install -y git cmake libssl-dev clang libc++-dev libc++abi-dev libbz2-dev zlib1g-dev mlocate
WORKDIR /devel
RUN git clone -b develop https://github.com/boostorg/boost.git
COPY .dockers/debian-10/user-config.jam /devel/boost/
COPY .dockers/debian-10/tests.sh /devel/boost/
WORKDIR /devel/boost
RUN git submodule update --init --recursive
COPY . /devel/boost/libs/beast/
RUN ./bootstrap.sh
RUN ./b2 toolset=gcc variant=release cxxstd=latest headers
RUN ./tests.sh || true

12
.dockers/debian-10/tests.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
./b2 --user-config=./user-config.jam \
toolset=clang,gcc \
asio.mode=dflt,nodep,nots,ts,nodep-nots,nodep-ts \
variant=release \
cxxstd=2a,17,14,11 \
-j`grep processor /proc/cpuinfo | wc -l` \
-q \
libs/beast/test libs/beast/example

View File

@@ -0,0 +1,11 @@
import feature ;
feature.feature asio.mode : dflt nodep nots ts nodep-nots nodep-ts : propagated composite ;
feature.compose <asio.mode>nodep : <define>"BOOST_ASIO_NO_DEPRECATED" ;
feature.compose <asio.mode>nots : <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>ts : <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
feature.compose <asio.mode>nodep-nots : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>nodep-ts : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
using clang : : clang++ : <stdlib>"libc++" <cxxflags>"-Wno-c99-extensions" ;
using gcc : : g++ : <cxxflags>"-Wno-c99-extensions" ;

View File

@@ -0,0 +1,19 @@
FROM debian:9
RUN apt-get update
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
RUN apt-get install -y build-essential
RUN apt-get install -y git cmake libssl-dev clang libc++-dev libc++abi-dev libbz2-dev zlib1g-dev mlocate
WORKDIR /devel
RUN git clone -b develop https://github.com/boostorg/boost.git
COPY .dockers/debian-9/user-config.jam /devel/boost/
COPY .dockers/debian-9/tests.sh /devel/boost/
WORKDIR /devel/boost
RUN git submodule update --init --recursive
COPY . /devel/boost/libs/beast/
RUN ./bootstrap.sh
RUN ./b2 toolset=gcc variant=release cxxstd=latest headers
RUN ./tests.sh || true

14
.dockers/debian-9/tests.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
# modify cxxstd=2a,17,14,11
./b2 --user-config=./user-config.jam \
toolset=clang,gcc \
asio.mode=dflt,nodep,nots,ts,nodep-nots,nodep-ts \
variant=release \
cxxstd=14,11 \
-j`grep processor /proc/cpuinfo | wc -l` \
-q \
libs/beast/test libs/beast/example

View File

@@ -0,0 +1,11 @@
import feature ;
feature.feature asio.mode : dflt nodep nots ts nodep-nots nodep-ts : propagated composite ;
feature.compose <asio.mode>nodep : <define>"BOOST_ASIO_NO_DEPRECATED" ;
feature.compose <asio.mode>nots : <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>ts : <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
feature.compose <asio.mode>nodep-nots : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>nodep-ts : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
using clang : : clang++ : <stdlib>"libc++" <cxxflags>"-Wno-c99-extensions" ;
using gcc : : g++ : <cxxflags>"-Wno-c99-extensions" ;

View File

@@ -11,13 +11,9 @@ COPY .dockers/fedora-32/tests.sh /devel/boost/
WORKDIR /devel/boost WORKDIR /devel/boost
RUN git submodule update --init --recursive RUN git submodule update --init --recursive
COPY Jamfile /devel/boost/libs/beast/ COPY . /devel/boost/libs/beast/
COPY doc /devel/boost/libs/beast/doc/
COPY example /devel/boost/libs/beast/example/
COPY meta /devel/boost/libs/beast/meta/
COPY tools /devel/boost/libs/beast/tools/
#RUN cd libs/beast && git checkout develop && git pull origin develop #RUN cd libs/beast && git checkout develop && git pull origin develop
RUN ./bootstrap.sh RUN ./bootstrap.sh
RUN ./b2 toolset=gcc variant=release cxxstd=latest headers RUN ./b2 toolset=gcc variant=release cxxstd=latest headers
RUN ./tests.sh RUN ./tests.sh || true

View File

@@ -0,0 +1,18 @@
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install -y git cmake libssl-dev clang libc++-dev libc++abi-dev libbz2-dev zlib1g-dev
WORKDIR /devel
RUN git clone -b develop https://github.com/boostorg/boost.git
COPY .dockers/ubuntu-16/user-config.jam /devel/boost/
COPY .dockers/ubuntu-16/tests.sh /devel/boost/
WORKDIR /devel/boost
RUN git submodule update --init --recursive
COPY . /devel/boost/libs/beast/
RUN ./bootstrap.sh
RUN ./b2 toolset=gcc variant=release cxxstd=latest headers
RUN ./tests.sh || true

14
.dockers/ubuntu-16/tests.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
# cxxstd=2a,17,14,11 \
./b2 --user-config=./user-config.jam \
toolset=clang,gcc \
asio.mode=dflt,nodep,nots,ts,nodep-nots,nodep-ts \
variant=release \
cxxstd=14,11 \
-j`grep processor /proc/cpuinfo | wc -l` \
-q \
libs/beast/test libs/beast/example

View File

@@ -0,0 +1,11 @@
import feature ;
feature.feature asio.mode : dflt nodep nots ts nodep-nots nodep-ts : propagated composite ;
feature.compose <asio.mode>nodep : <define>"BOOST_ASIO_NO_DEPRECATED" ;
feature.compose <asio.mode>nots : <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>ts : <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
feature.compose <asio.mode>nodep-nots : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>nodep-ts : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
using clang : : clang++ : <stdlib>"libc++" <cxxflags>"-Wno-c99-extensions" ;
using gcc : : g++ : <cxxflags>"-Wno-c99-extensions" ;

View File

@@ -0,0 +1,18 @@
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install -y git cmake libssl-dev clang libc++-10-dev libc++abi-10-dev libbz2-dev zlib1g-dev
WORKDIR /devel
RUN git clone -b develop https://github.com/boostorg/boost.git
COPY .dockers/ubuntu-18-cxxstd-17/user-config.jam /devel/boost/
COPY .dockers/ubuntu-18-cxxstd-17/tests.sh /devel/boost/
WORKDIR /devel/boost
RUN git submodule update --init --recursive
COPY . /devel/boost/libs/beast/
RUN ./bootstrap.sh
RUN ./b2 toolset=gcc variant=release cxxstd=latest headers
RUN ./tests.sh || true

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
# cxxstd=2a,17,14,11 \
./b2 --user-config=./user-config.jam \
toolset=clang,gcc \
asio.mode=dflt,nodep,nots,ts,nodep-nots,nodep-ts \
variant=release \
cxxstd=17,14,11 \
-j`grep processor /proc/cpuinfo | wc -l` \
-q \
libs/beast/test libs/beast/example

View File

@@ -0,0 +1,11 @@
import feature ;
feature.feature asio.mode : dflt nodep nots ts nodep-nots nodep-ts : propagated composite ;
feature.compose <asio.mode>nodep : <define>"BOOST_ASIO_NO_DEPRECATED" ;
feature.compose <asio.mode>nots : <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>ts : <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
feature.compose <asio.mode>nodep-nots : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>nodep-ts : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
using clang : : clang++ : <stdlib>"libc++" <cxxflags>"-Wno-c99-extensions" ;
using gcc : : g++ : <cxxflags>"-Wno-c99-extensions" ;

View File

@@ -0,0 +1,18 @@
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install -y git cmake libssl-dev clang libc++-10-dev libc++abi-10-dev libbz2-dev zlib1g-dev
WORKDIR /devel
RUN git clone -b develop https://github.com/boostorg/boost.git
COPY .dockers/ubuntu-18/user-config.jam /devel/boost/
COPY .dockers/ubuntu-18/tests.sh /devel/boost/
WORKDIR /devel/boost
RUN git submodule update --init --recursive
COPY . /devel/boost/libs/beast/
RUN ./bootstrap.sh
RUN ./b2 toolset=gcc variant=release cxxstd=latest headers
RUN ./tests.sh || true

12
.dockers/ubuntu-18/tests.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
./b2 --user-config=./user-config.jam \
toolset=clang,gcc \
asio.mode=dflt,nodep,nots,ts,nodep-nots,nodep-ts \
variant=release \
cxxstd=2a,17,14,11 \
-j`grep processor /proc/cpuinfo | wc -l` \
-q \
libs/beast/test libs/beast/example

View File

@@ -0,0 +1,11 @@
import feature ;
feature.feature asio.mode : dflt nodep nots ts nodep-nots nodep-ts : propagated composite ;
feature.compose <asio.mode>nodep : <define>"BOOST_ASIO_NO_DEPRECATED" ;
feature.compose <asio.mode>nots : <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>ts : <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
feature.compose <asio.mode>nodep-nots : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>nodep-ts : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
using clang : : clang++ : <stdlib>"libc++" <cxxflags>"-Wno-c99-extensions" ;
using gcc : : g++ : <cxxflags>"-Wno-c99-extensions" ;

View File

@@ -0,0 +1,19 @@
FROM ubuntu:20.04
RUN apt-get update
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
RUN apt-get install -y build-essential
RUN apt-get install -y git cmake libssl-dev clang libc++-10-dev libc++abi-10-dev libbz2-dev zlib1g-dev mlocate
WORKDIR /devel
RUN git clone -b develop https://github.com/boostorg/boost.git
COPY .dockers/ubuntu-20/user-config.jam /devel/boost/
COPY .dockers/ubuntu-20/tests.sh /devel/boost/
WORKDIR /devel/boost
RUN git submodule update --init --recursive
COPY . /devel/boost/libs/beast/
RUN ./bootstrap.sh
RUN ./b2 toolset=gcc variant=release cxxstd=latest headers
RUN ./tests.sh || true

12
.dockers/ubuntu-20/tests.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
./b2 --user-config=./user-config.jam \
toolset=clang,gcc \
asio.mode=dflt,nodep,nots,ts,nodep-nots,nodep-ts \
variant=release \
cxxstd=2a,17,14,11 \
-j`grep processor /proc/cpuinfo | wc -l` \
-q \
libs/beast/test libs/beast/example

View File

@@ -0,0 +1,11 @@
import feature ;
feature.feature asio.mode : dflt nodep nots ts nodep-nots nodep-ts : propagated composite ;
feature.compose <asio.mode>nodep : <define>"BOOST_ASIO_NO_DEPRECATED" ;
feature.compose <asio.mode>nots : <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>ts : <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
feature.compose <asio.mode>nodep-nots : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
feature.compose <asio.mode>nodep-ts : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
using clang : : clang++ : <stdlib>"libc++" <cxxflags>"-Wno-c99-extensions" ;
using gcc : : g++ : <cxxflags>"-Wno-c99-extensions" ;