From fb0e7c1fd5bf3eafeaa73bd338067c16c1163022 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Mon, 22 Jul 2024 06:50:08 -0400 Subject: [PATCH] Docs: Use docker build commands as params (#2642) --- .gitignore | 1 + platform/linux/README.md | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index bad82f1a9..4133ad85f 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ compile_commands.json /build **/.idea +**/.clwb /platform/android/MapLibreAndroidTestApp/local.properties /new_offline.db *.gpg diff --git a/platform/linux/README.md b/platform/linux/README.md index 7a54a363c..79688d84a 100644 --- a/platform/linux/README.md +++ b/platform/linux/README.md @@ -34,6 +34,9 @@ docker build -t maplibre-native-image -f platform/linux/Dockerfile . # Run docker image as the current user. # This ensures that the files created in the container are owned by the current user. +docker run --rm -it -v "$PWD:/code/" -u $(id -u):$(id -g) maplibre-native-image ___any_build_command___ + +# You can also execute build commands from inside the docker container by starting it without parameters: docker run --rm -it -v "$PWD:/code/" -u $(id -u):$(id -g) maplibre-native-image ```