Skip to content

Container Building

Jonathan Lifflander edited this page Oct 28, 2020 · 3 revisions

How to build with Docker

  1. First download docker. (link for mac)

  2. Clone the repo

  3. cd vt

  4. Note, the default docker environment variables are in vt/.env

  5. Look at comments at the top of vt/docker-compose.yml for environment variables that can be set to configure build. By default, you will get GNU gcc-7, ubuntu 18.04, LB enabled, trace disabled

  6. For instance, if you want to turn on trace: export VT_TRACE=1

  7. Pull the pre-built image, selected based on environment variables: docker-compose pull ubuntu-cpp

  8. Run the image in interactive mode: docker-compose run ubuntu-cpp-interactive

  9. In the image run: /vt/ci/build_cpp.sh /vt /build

  10. After cmake runs, you can control-c and cd build/vt. From here you can edit, rebuild, etc.