From 32aea8d154356e86c8c63ba380c5035cb21e0d32 Mon Sep 17 00:00:00 2001 From: Surith Thekkiam Date: Thu, 14 Jan 2021 15:52:42 -0800 Subject: [PATCH] Recommend Docker have 5GB memory available. Co-authored-by: Alan Evans --- reproducible-builds/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reproducible-builds/README.md b/reproducible-builds/README.md index f6468e8bb1a..fb060d4b1ea 100644 --- a/reproducible-builds/README.md +++ b/reproducible-builds/README.md @@ -134,6 +134,13 @@ Your platform might also have its own preferred way of installing Docker. E.g. U In the following sections we will assume that your Docker installation works without issues. So after installing, please make sure that everything is running smoothly before continuing. +### Configuring Docker runtime memory + +Docker seems to require at least 5GB runtime memory to be able to build the APK successfully. Docker behaves differently on each platform - please consult Docker documentation for the platform of choice to configure the runtime memory settings. + + * https://docs.docker.com/config/containers/resource_constraints/ + * OS X https://docs.docker.com/docker-for-mac/#resources + * Windows https://docs.docker.com/docker-for-windows/#resources ## Building a Docker image for Signal First, you need to pull down the source for Signal-Android, which contains everything you need to build the project, including the `Dockerfile`. The `Dockerfile` contains instructions on how to automatically build a Docker image for Signal. It's located in the `reproducible-builds` directory of the repository. To get it, clone the project: