Skip to content

Running Infer in Docker

Jiří Daněk edited this page Aug 23, 2017 · 1 revision

Getting the sources into the container

Mount the directory with your source code into the Docker container as a volume

docker run -v /home/user/project:/mnt --rm -it infer

Next, on the command line inside the container, go to /mnt and run Infer the usual way, e.g.

infer -- make

Installing additional Ubuntu packages

If you need to install additional packages, you need to first update package lists

apt-get update

Only then you can install packages, for example

apt-get install -y maven

Sources

https://github.com/facebook/infer/issues/345

Clone this wiki locally