aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-06-29 12:40:41 +0000
committerxiphon <xiphon@protonmail.com>2020-07-02 18:13:51 +0000
commit7677103f1bcea63620e382284da8331e4622fca4 (patch)
tree78096796e85c8886a1719106b50eddd13f34936f /README.md
parente1e862bce49467e0cafb18c837eeecb7fd505bb4 (diff)
downloadmonzero-gui-7677103f1bcea63620e382284da8331e4622fca4.tar.gz
monzero-gui-7677103f1bcea63620e382284da8331e4622fca4.tar.xz
monzero-gui-7677103f1bcea63620e382284da8331e4622fca4.zip
docker: implement Docker Linux 'release-static' build
Diffstat (limited to 'README.md')
-rw-r--r--README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4b6a6f53..b0cb5542 100644
--- a/README.md
+++ b/README.md
@@ -81,6 +81,28 @@ Packaging for your favorite distribution would be a welcome contribution!
*Note*: Qt 5.9.7 is the minimum version required to build the GUI.
+### Building Linux static binaries with Docker (any OS)
+
+1. Install Docker [https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)
+2. Clone the repository
+ ```
+ git clone --recursive https://github.com/monero-project/monero-gui.git
+ ```
+3. Prepare build environment
+ ```
+ cd monero-gui
+ docker build --tag monero:build-env-gui --build-arg THREADS=4 .
+ ```
+ \* `4` - number of CPU threads to use
+
+4. Build
+ ```
+ docker run --rm -it -v <MONERO_GUI_DIR_FULL_PATH>:/monero-gui -w /monero-gui monero:build-env-gui sh -c 'USE_SINGLE_BUILDDIR=ON DEV_MODE=ON make release-static -j4'
+ ```
+ \* `<MONERO_GUI_DIR_FULL_PATH>` - absolute path to `monero-gui` directory
+ \* `4` - number of CPU threads to use
+5. Monero GUI Linux static binaries will be placed in `monero-gui/build/release/bin` directory
+
### On Linux:
(Tested on Ubuntu 17.10 x64, Ubuntu 18.04 x64 and Gentoo x64)