tree: 6e604ac9ebb6942753b346b978ad099d9939ac76 [path history] [tgz]
  1. centos-7.3/
  2. debian-jessie/
  3. debian-stretch/
  4. scripts/
  5. ubuntu-artful/
  6. ubuntu-trusty/
  7. ubuntu-xenial/
  8. README.md
  9. refresh.sh
  10. run.sh
  11. Vagrantfile
  12. vars.sh
build/docker/README.md

Docker Integration

Due to the large number of language requirements to build Apache Thrift, docker containers are used to build and test the project on a variety of platforms to provide maximum test coverage.

Travis CI Integration

The Travis CI scripts use the following environment variables and logic to determine their behavior.

Environment Variables

VariableDefaultUsage
DISTROubuntu-xenialSet by various build jobs in .travis.yml to run builds in different containers. Not intended to be set externally.
DOCKER_REPOthriftThe name of the Docker Hub repository to obtain and store docker images.
DOCKER_USERapacheThe Docker Hub account name containing the repository.
DOCKER_PASS<none>The Docker Hub account password to use when pushing new tags.

For example, the default docker image that is used in builds if no overrides are specified would be: apache/thrift:ubuntu-xenial

If you have forked the Apache Thrift repository and you would like to use your own Docker Hub account to store thrift build images, you can use the Travis CI web interface to set the DOCKER_USER, DOCKER_PASS, and DOCKER_REPO variables in a secure manner.

Logic

The Travis CI build runs in two phases - first the docker images are rebuilt for each of the three supported containers if they do not match the Dockerfile that was used to build the most recent tag. If a DOCKER_PASS environment variable is specified, the docker stage builds will attempt to log into Docker Hub and push the resulting tags.

Supported Containers

The Travis CI (continuous integration) builds use the Ubuntu Trusty, Xenial, and Artful images to maximize language level coverage.

Ubuntu

  • trusty (legacy)
  • xenial (stable)
  • artful (latest)

Unsupported Containers

These containers may be in various states, and may not build everything.

CentOS

  • 7.3
    • make check in lib/py may hang in test_sslsocket - root cause unknown

Debian

Usage

From the Apache Thrift code base root:

  • Build

    docker build -t thrift build/docker/ubuntu-xenial

  • Run

    docker run -v $(pwd):/thrift/src -it thrift /bin/bash

Core Tool Versions per Dockerfile

Toolubuntu-trustyubuntu-xenialubuntu-artfulNotes
ant1.9.31.9.61.9.9
autoconf2.692.692.69
automake1.14.11.151.15
bison3.0.23.0.43.0.4
boost1.54.01.58.01.63.0artful: stock boost 1.62.0 has problems running unit tests
cmake3.2.23.5.13.9.1
cppcheck1.611.721.80
flex2.5.352.6.02.6.1
glibc2.192.232.26
libevent2.0.212.0.212.1
libstdc++4.8.45.4.07.2.0
make3.814.14.1
openssl1.0.1f1.0.2g1.0.2g
qt55.2.15.5.15.9.1

Compiler/Language Versions per Dockerfile

Languageubuntu-trustyubuntu-xenialubuntu-artfulNotes
as3Not in CI
C++ gcc4.8.45.4.07.2.0
C++ clang3.43.84.0
C# (mono)3.2.8.04.2.14.6.2.7
c_glib2.40.22.48.22.54.0
cocoaNot in CI
d2.070.22.073.22.076.0
dart1.20.11.24.2artful: apt repo not compatible with apt 1.4?
delphiNot in CI
dotnet2.0.0Needs to be added to artful
erlangR16B0318.320.0.4
go1.2.11.6.21.8.3
haskell7.6.37.10.38.0.2
haxe3.2.13.4.2disabled in trusty builds - cores on install v3.0.0, disabled in artful builds - see THRIFT-4352
java1.7.0_1511.8.0_1311.8.0_144
jsUnsure how to look for version info?
lua5.1.55.2.45.3.3
nodejs4.2.66.11.2trusty has node.js 0.10.0 which is too old
ocaml4.02.34.04.0
perl5.18.25.22.15.26.0
php5.5.97.0.227.1.8
python2.7.62.7.122.7.14
python33.4.33.5.23.6.3
ruby1.9.3p4842.3.1p1122.3.3p222
rust1.15.11.15.11.18.0
smalltalkNot in CI
swiftNot in CI