Some tools for automated package generation
Clone or download
lasote Merge pull request #94 from SSE4/help2man
- install help2man on CentOS images
Latest commit fcd8d1f Jan 14, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
clang_3.8 - remove __pycache__ Dec 26, 2018
clang_3.9-x86 - remove __pycache__ Dec 26, 2018
clang_3.9 - remove __pycache__ Dec 26, 2018
clang_4.0-x86 - remove __pycache__ Dec 26, 2018
clang_4.0 - remove __pycache__ Dec 26, 2018
clang_5.0-x86 - remove __pycache__ Dec 26, 2018
clang_5.0 - remove __pycache__ Dec 26, 2018
clang_6.0-x86 - remove __pycache__ Dec 26, 2018
clang_6.0 - remove __pycache__ Dec 26, 2018
clang_7-x86 - remove __pycache__ Dec 26, 2018
clang_7 - remove __pycache__ Dec 26, 2018
conan_server #12 Test Conan server image Nov 2, 2018
conan_test_azure - exclude CMake GUI & docs Dec 26, 2018
conan_tests #53 Override python by python3 Oct 17, 2018
example_project_test Simpler name Oct 10, 2018
gcc_4.6 - remove __pycache__ Dec 26, 2018
gcc_4.8-x86 - remove __pycache__ Dec 26, 2018
gcc_4.8 - remove __pycache__ Dec 26, 2018
gcc_4.9-armv7 - remove __pycache__ Dec 26, 2018
gcc_4.9-armv7hf - remove __pycache__ Dec 26, 2018
gcc_4.9-x86 - remove __pycache__ Dec 26, 2018
gcc_4.9 - remove __pycache__ Dec 26, 2018
gcc_5-armv7 #87 Install conan package tools Dec 14, 2018
gcc_5-armv7hf #87 Install conan package tools Dec 14, 2018
gcc_5-x86 - remove __pycache__ Dec 26, 2018
gcc_5.2 - remove __pycache__ Dec 26, 2018
gcc_5.3 - remove __pycache__ Dec 26, 2018
gcc_5.4 - remove __pycache__ Dec 26, 2018
gcc_5 - remove __pycache__ Dec 26, 2018
gcc_6-armv7 #87 Install conan package tools Dec 14, 2018
gcc_6-armv7hf #87 Install conan package tools Dec 14, 2018
gcc_6-x86 - remove __pycache__ Dec 26, 2018
gcc_6.2 - remove __pycache__ Dec 26, 2018
gcc_6.3 - remove __pycache__ Dec 26, 2018
gcc_6.4 - remove __pycache__ Dec 26, 2018
gcc_6 - remove __pycache__ Dec 26, 2018
gcc_7-armv7 #87 Install conan package tools Dec 14, 2018
gcc_7-armv7hf #87 Install conan package tools Dec 14, 2018
gcc_7-centos6-x86 - install help2man Jan 13, 2019
gcc_7-centos6 - install help2man Jan 13, 2019
gcc_7-x86 - remove __pycache__ Dec 26, 2018
gcc_7.2 - remove __pycache__ Dec 26, 2018
gcc_7 - remove __pycache__ Dec 26, 2018
gcc_8-armv7 #87 Install conan package tools Dec 14, 2018
gcc_8-armv7hf #87 Install conan package tools Dec 14, 2018
gcc_8-x86 - remove __pycache__ Dec 26, 2018
gcc_8 - remove __pycache__ Dec 26, 2018
.gitignore Conan tests Jul 23, 2018
.travis.yml - output image size Dec 26, 2018 #18 Add MIT license Oct 30, 2017 Include CentOS6 x86 in README [skip ci] Dec 13, 2018
azure-pipelines.yml Merge branch 'master' into feature/python3 Oct 26, 2018 - output image size Dec 26, 2018
conan_version.txt 1.11.2 Jan 8, 2019
docker-compose.yml Build x86 version for CentOS6 Dec 11, 2018
logo.png #53 add logo [skip ci] Oct 17, 2018 cmake 3.12 Aug 30, 2018

Build Status



Dockerfiles for different gcc compiler versions. You can use these images directly in your project or with the conan-package-tools project.

The images are uploaded to Dockerhub:


Version Arch Status, Life cycle
conanio/gcc46: gcc 4.6 x86_64 Supported
conanio/gcc48: gcc 4.8 x86_64 Supported
conanio/gcc48-x86: gcc 4.8 x86 Supported
conanio/gcc49: gcc 4.9 x86_64 Supported
conanio/gcc49-x86: gcc 4.9 x86 Supported
conanio/gcc49-armv7: gcc 4.9 armv7 Supported
conanio/gcc49-armv7hf: gcc 4.9 armv7hf Supported
conanio/gcc52: gcc 5.2 x86_64 Supported
conanio/gcc53: gcc 5.3 x86_64 Supported
conanio/gcc54: gcc 5.4 x86_64 Supported
conanio/gcc63: gcc 6.3 x86_64 Supported
conanio/gcc64: gcc 6.4 x86_64 Supported
conanio/gcc72: gcc 7.2 x86_64 Supported

GCC>=5 is ABI compatible for minor versions. To solve multiple minors, there are generic images by major version. If you are interested to understand the motivation, read this issue.

Version Arch Status, Life cycle
conanio/gcc5: gcc 5 x86_64 Supported
conanio/gcc5-x86: gcc 5 x86 Supported
conanio/gcc5-armv7: gcc 5 armv7 Supported
conanio/gcc5-armv7hf: gcc 5 armv7hf Supported
conanio/gcc6: gcc 6 x86_64 Supported
conanio/gcc6-x86: gcc 6 x86 Supported
conanio/gcc6-armv7: gcc 6 armv7 Supported
conanio/gcc6-armv7hf: gcc 6 armv7hf Supported
conanio/gcc7-x86: gcc 7 x86 Supported
conanio/gcc7: gcc 7 x86_64 Supported
conanio/gcc7-centos6: gcc 7 x86_64 Supported
conanio/gcc7-centos6-x86: gcc 7 x86 Supported
conanio/gcc7-armv7: gcc 7 armv7 Supported
conanio/gcc7-armv7hf: gcc 7 armv7hf Supported
conanio/gcc8-x86: gcc 8 x86 Supported
conanio/gcc8: gcc 8 x86_64 Supported
conanio/gcc8-armv7: gcc 8 armv7 Supported
conanio/gcc8-armv7hf: gcc 8 armv7hf Supported


Version Arch Status, Life cycle
- conanio/clang38: clang 3.8 x86_64 Supported
- conanio/clang39-x86: clang 3.9 x86 Supported
- conanio/clang39: clang 3.9 x86_64 Supported
- conanio/clang40-x86: clang 4.0 x86 Supported
- conanio/clang40: clang 4.0 x86_64 Supported
- conanio/clang50-x86: clang 5.0 x86 Supported
- conanio/clang50: clang 5.0 x86_64 Supported
- conanio/clang60-x86: clang 6.0 x86 Supported
- conanio/clang60: clang 6.0 x86_64 Supported
- conanio/clang7-x86: clang 7 x86 Supported
- conanio/clang7: clang 7 x86_64 Supported

Conan Server

Conan Docker Tools provides an image version with only Conan Server installed, very useful for the cases it is necessary to run a server without touching the host.

Version Arch Status, Life cycle
- conanio/conan_server ANY Supported

Conan Installer

conanio/gcc7-centos6 is a special image version based on CentOS 6, GCC 7 and glibc 2.12 (very old glibc version). This is intended to build executables that run almost on any Linux because glibc guarantees backward compatibility. You can use this image to build your Conan build tools packages (build_requires). This image is ONLY able to build x86_64 binaries.

conanio/gcc7-centos6-x86 is a special image version based on CentOS 6 i386, GCC 7 and glibc 2.12 (very old glibc version). This is intended to build executables that run almost on any Linux because glibc guarantees backward compatibility. You can use this image to build your Conan build tools packages (build_requires). This image is ONLY able to build x86 binaries.

Use the images to test your c++ project in travis-ci

These Docker images can be used to build your project using the travis-ci CI service, even if you are not using Conan. It's always recommended to build and test your C/C++ projects in a Docker image running in travis:

  • Travis CI images are old, so installing a newer version of gcc and the needed tools can be hard. Check this thread.
  • The generated binaries will use the old libc/libstdc++ installed in the system, so ABI incompatibilities can occur if you use these packages in more modern distributions.

To setup your project, copy the contents of the folder example_project_test to your project. You need to modify:

  • .travis.yml file to enable or disable more GCC or CLang versions add more entries to the matrix using DOCKER_IMAGE
  • .travis/ With the lines that you need to build or test your project


    os: linux
       - docker
    sudo: required
    language: python
        - DOCKER_IMAGE=conanio/gcc63 # 6.3
        - DOCKER_IMAGE=conanio/clang39 # 3.9

           - os: osx
             osx_image: xcode8.2 # apple-clang 8.0
             language: generic

      - ./.travis/

      - ./.travis/

      - ./.travis/

.travis/ Change it according your project build needed commands:


    rm -rf build && mkdir -p build && cd build
    conan install ../ --build=missing
    cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ..
    cmake --build .

Use the images locally

You can also use the images locally to build or test packages, this is an example command:

docker run -v/tmp/.conan:/home/conan/.conan conanio/gcc63 bash -c "conan install lz4/1.8.3@bincrafters/stable --build missing"

This command is sharing /tmp/.conan as a shared folder with the conan home, so the Boost package will be built there. You can change the directory or execute any other command that works for your needs.

If you are familiarized with Docker compose, also it's possible to start a new container by:

docker-compose run -v/tmp/.conan:/home/conan/.conan gcc63 bash -c "conan install lz4/1.8.3@bincrafters/stable --build missing"

Build, Test and Deploy


The images are already built and uploaded to "conanio" dockerhub account, If you want to build your own images you can do it by:

$ python

The script will build, test and deploy your Docker image. You can configure all stages by environment variables listed below.

Also, you can build only a version:

E.g Build and test only a image with Conan and gcc-6.3

$ CONAN_GCC_VERSIONS="6.3" python

E.g Build and test only the images with Conan and clang-4.0, clang-3.9

$ CONAN_CLANG_VERSIONS="3.9,4.0" python

The stages that compose the script will be described below:


The first stage collect all compiler versions listed in CONAN_GCC_VERSIONS for Gcc and in CONAN_CLANG_VERSIONS for Clang. If you do not set any compiler version, the script will execute all supported versions for Gcc and Clang.

You can configure only a compiler version or a list, by these variables. If you skipped a compiler list, the build will not be executed for that compiler.

The image tag can be configured by DOCKER_BUILD_TAG. Build default will used latest.

Each image created on this stage will be tagged as DOCKER_USERNAME/conan_compiler_version.

The image will not be removed after build.


The second stage runs the new image created and builds the Conan package gtest/1.8.0. The same build variables, as CONAN_GCC_VERSIONS and CONAN_CLANG_VERSIONS are used to select the compiler and version.

All tests build the package gtest/1.8.0, for x86 and x86_64.

Gcc images use libstdc++. Clang images use libc++ and libstdc++.

The packages created on test, are not uploaded to Conan server, Are just to validate the image.


The final stage pushes the image to docker server (hub.docker). DOCKER_UPLOAD should be true.

The login uses DOCKER_LOGIN_USERNAME and DOCKER_PASSWORD to authenticate.

E.g Upload Docker images to Docker hub, after build and test:


Environment configuration

You can also use environment variables to change the behavior of Conan Docker Tools.

This is especially useful for CI integration.

Build and Test variables:

  • GCC_VERSIONS: GCC versions to build, test and deploy, comma separated, e.g. "4.6,4.8,4.9,5.2,5.3,5.4,"
  • CLANG_VERSIONS: Clang versions to build, test and deploy, comma separated, e.g. "3.8,3.9,4.0"
  • DOCKER_BUILD_TAG: Docker image tag, e.g "latest", "0.28.1"

Upload related variables:

  • DOCKER_USERNAME: Your Docker username to authenticate in Docker server.
  • DOCKER_PASSWORD: Your Docker password to authenticate in Docker server
  • DOCKER_UPLOAD: If attributed to true, it will upload the generated docker image, positive words are accepted, e.g "True", "1", "Yes". Default "False"
  • BUILD_CONAN_SERVER_IMAGE: If attributest to true, it will build and upload an image with the conan_server