Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (21 sloc) 1.36 KB
layout title comments permalink tags categories
post
Modern C++ compilation - part 2, docker'd
true
modern-cpp-docker
cpp
docker
clang
gcc
cmake
ninja
cpp

Dockerize it

In the last post, we covered creating a modern build environment and since then, I added Boost and Google Bazel to the image. Bazel is the open source version of Google's Blaze build system. It is pretty cool to use so I added it to the docker image to make it easy to use. Additionally a separate docker image was created that builds a Hello Blaze project.

But what the heck is Bazel?

"Bazel is a build tool, i.e. a tool that will run compilers and tests to assemble your software, similar to Make, Ant, Gradle, Buck, Pants, and Maven." Reference...more info here

Run it!

  • git clone git@github.com:bowlofstew/hello-bazel.git

  • cd hello-bazel

  • docker build -t hello-bazel .

  • docker -it hello-bazel

  • cd /project && bazel build //b

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.