Directory layout should be as follows:
- opencv/ - opencv sources
- opencv_extra/ - opencv test data
- <this_repository>/
- workspace/ - directory with opencv builds and caches
- scripts/ - directory with build and test scripts
- ...
- run.sh - entrypoint script
Steps:
./run.sh- will build docker image and run the container- Inside the container:
build.sh- build opencv - Inside the container:
test.sh- run tests
Modify scripts in the scripts/ directory according to your needs.