Docker basics: cross-compiling a CMake project
In this article you will understand how I built my own cross-compile tool for my CMake project for Linux systems with Docker. Obviously, you will need:
- Docker installed;
- Some CMake project. Let's start!
Describing our image
Docker is a powerful tool of OS virtualization to deliver software in packages called containers. These containers are stored in the form of images (that can be distributed).
Let's take advantage of these possibilities in cool project starting with Docker descriptor file, the
Dockerfile. You can put this file at the aside of your project: