-
Notifications
You must be signed in to change notification settings - Fork 9
Container Building
Jonathan Lifflander edited this page Oct 28, 2020
·
3 revisions
-
First download docker. (link for mac)
-
Clone the repo
-
cd vt
-
Note, the default docker environment variables are in
vt/.env
-
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 -
For instance, if you want to turn on trace:
export VT_TRACE=1
-
Pull the pre-built image, selected based on environment variables:
docker-compose pull ubuntu-cpp
-
Run the image in interactive mode:
docker-compose run ubuntu-cpp-interactive
-
In the image run:
/vt/ci/build_cpp.sh /vt /build
-
After cmake runs, you can control-c and
cd build/vt
. From here you can edit, rebuild, etc.