0.2 Docker镜像

在Docker中进行环境搭建,无疑是非常方便的(依赖项都已经安装好了)。我们的Docker镜像是基于Ubuntu 18.04的镜像制作,您可以按照官方文档https://docs.docker.com 在您的操作系统上安装Docker。

Docker安装好后,您可以下载并运行我们的镜像,然后可以对本书示例进行测试:

  1. $ docker run -it devcafe/cmake-cookbook_ubuntu-18.04
  2. $ git clone https://github.com/dev-cafe/cmake-cookbook.git
  3. $ cd cmake-cookbook
  4. $ pipenv install --three
  5. $ pipenv run python testing/collect_tests.py 'chapter-*/recipe-*'