Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »


Configuring IncrediBuild for Use with Docker

IncrediBuild includes its own commands for Docker. Usually the regular Docker command gets substituted with the IncrediBuild Docker command. The ideal scenario is that the Docker contains the tools and environment necessary for your build while the actual code source exists outside of Docker.

Requirements

  • IncrediBuild must be installed.
  • A valid license must be loaded.

How to Use

Instead of the following command syntax:

  • docker run [some-docker-options] image command_to_build

Use the following command syntax:

  • ib_docker run [some-docker-options] image command_to_build

Usage Example

Usual build:

  • sudo  docker run -i -t  -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group -u 1000:1000 -v /home/xoreax/linux-2.6.34.14/:/home/xoreax/linux-2.6.34.14/  -w /home/xoreax/linux-2.6.34.14  1d070b96eb09 make -j8


With IncrediBuild:

  • sudo  ./ib_docker run -i -t  -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group -u 1000:1000 -v /home/xoreax/linux-2.6.34.14/:/home/xoreax/linux-2.6.34.14/  -w /home/xoreax/linux-2.6.34.14  1d070b96eb09 ib_console make -j20


  1. ib_docker should be run with root permissions.
  2. -j number should be increased  relatively more compared to regular builds. It is suggested that it is at least twice as much as the available cores.


  • No labels