Centos/RHEL 6.6 Build Container for C/C++11 Applications
This Docker image supports building C/C++ applications targeted to Centos/RHEL 6.6.
It comes with an opinionated selection of tools to build those applications that are
based on CMake and Google C++ Test Framework.
It extends the basic distribution by adding a newer version (4.8.1) of gcc/g++ that supports most C++11 standard features.
Additional Build Tools
Other common development tools also included:
|git||22.214.171.124||Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.|
|cmake||126.96.36.199||CMake is cross-platform free and open-source software for managing the build process of software using a compiler-independent method.|
|Google C++ Testing Framework||1.8.0||Google Test is a unit testing library for the C++ programming language, based on the xUnit architecture.|
|popt-devel||1.13||Popt is a C library for parsing command line parameters.|
|zlib-devel||1.2.3||zlib is designed to be a free, general-purpose, legally unencumbered lossless data-compression library.|
|glib2-devel||2.28.8||GLib provides the core application building blocks for libraries and applications written in C.|
|libsodium-devel||0.4.5||Sodium is a modern, easy-to-use software library for encryption, decryption, signatures, password hashing and more.|
Manual Container Activation
$ docker run -ti --rm --name builder --hostname builder \ -v $HOME/MYPROJECT:/workspace:ro \ -v $HOME/build/MYPROJECT:/build \ eliezio/centos6.6-devtoolset2-gtest:1.3.1 bash nobody@builder:/build$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo /workspace nobody@builder:/build$ make nobody@builder:/build$ ctest -V nobody@builder:/build$ cpack -G RPM nobody@builder:/build$ exit
After a successful build, the RPM archive has been generated at