tree: 274da55aa7f80154ca5325f8ef8d6e7d088c6b28 [path history] [tgz]
  1. build.sh
  2. cloudbuild.yaml
  3. Dockerfile
  4. README.md
.android/README.md

Building for Android

To build for Android (from the root of the rr source tree):

docker build .android -t rr-android
mkdir -p obj/dist
docker run -it --rm \
    -u $UID:$GID \
    -v $(pwd):/src/rr \
    -v $(pwd)/obj/dist:/dist \
    rr-android

-u $UID:GID ensures that the build runs with your current UID/GID, which is necessary to avoid the output being only writable by root.

-v $(pwd):/src/rr mounts the source tree in the container so it can be built.

-v $(pwd)/obj/dist:/dist sets the output directory for the container to the current directory. The last step of the build will copy the rr tarball to the directory on the left of :.