Skip to content

Commit

Permalink
Docs: Use docker build commands as params
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jul 22, 2024
1 parent 529ed98 commit eb1b7cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
compile_commands.json
/build
**/.idea
**/.clwb
/platform/android/MapLibreAndroidTestApp/local.properties
/new_offline.db
*.gpg
Expand Down
3 changes: 3 additions & 0 deletions platform/linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit eb1b7cc

Please sign in to comment.