Compile a C++/Qt project within Docker.
Qt version used is 5.9.4.
Create a build.sh file :
cd /src
qmake -r
make
make install Then a docker-compose.yml file :
version: '2.1'
services:
builder:
image: hadim/docker-qt
volumes:
- ./src:/src
- ./local/:/local
- ./build.sh:/build.shLaunch the automatic build script /build.sh with docker-compose up or launch a bash session with docker-compose run builder bash.
- Hadrien Mary