Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.07 KB

File metadata and controls

45 lines (30 loc) · 1.07 KB

Build debian packages in containers

Podman Compatible: packages can be built with Podman as well.

Build the image

The build image command must be run at the root of the android-cuttlefish repo directory.

Enabling Docker BuildKit is required on Docker version below 23.0 to build this image.

docker build \
  --file "tools/buildutils/cw/Containerfile" \
  --tag "android-cuttlefish-build:latest" \
  .

Build the package

The run container command must be run at the root of the android-cuttlefish repo directory.

base

docker run -v=$PWD:/mnt/build -w /mnt/build android-cuttlefish-build:latest base

Persist bazel cache among executions.

docker run -v=$HOME/.cache/bazel:/root/.cache/bazel  -v=$PWD:/mnt/build -w /mnt/build  android-cuttlefish-build:latest base

container

docker run -v=$PWD:/mnt/build -w /mnt/build android-cuttlefish-build:latest container

frontend

docker run -v=$PWD:/mnt/build -w /mnt/build android-cuttlefish-build:latest frontend