Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.12 KB

docker.md

File metadata and controls

39 lines (30 loc) · 1.12 KB

Docker usage (experimental)

A Dockerfile is available in docker/ directory. It has not been properly tested but should still work.

Content

The container will have all the dependencies required to build BGraphs including :

  • git v2.29
  • repo
  • BGraph itself

Building

$ docker build -f docker/Dockerfile -t bgraph .

This step will take some times because it will download and compile a few components (like git).

!!! note By default, the container will stop at the last image. You may add the --target parameter to stop at earlier stages.

Usage

$ docker run bgraph

Building BGraph inside Docker (untested)

!!! note The builder inside the container needs a valid gitconfig file. An option is to copy the one used in the system (usually in $HOME/.git/config).

$ docker run \
    --rm \
    -v $(pwd)/graphs:/home/user/graphs \ # To retrieve the generated graph
    -v $XDG_CONFIG_DIR/git/config:/home/user/.gitconfig \ # User/Email should be defined
    bgraph:latest \ # Image name
    bgraph generate-single graphs/ android-10.0.0_r2 'https://android.googlesource.com'