forked from maplibre/maplibre-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
44 additions
and
27 deletions.
There are no files selected for viewing
6 changes: 2 additions & 4 deletions
6
.aspect/rules/external_repository_action_cache/npm_translate_lock_LTE4Nzc1MDcwNjU=
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# @generated | ||
# Input hashes for repository rule npm_translate_lock(name = "npm", pnpm_lock = "//:pnpm-lock.yaml"). | ||
# This file should be checked into version control along with the pnpm-lock.yaml file. | ||
.npmrc=-592547263 | ||
pnpm-lock.yaml=104874376 | ||
package-lock.json=-1109603374 | ||
package.json=752745807 | ||
pnpm-lock.yaml=322447152 | ||
package.json=1512585561 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Linux | ||
|
||
These steps will allow you to compile code as described [platform/linux/README.md](../platform/linux/README.md) using a docker container. All the steps should be executed from the root of the repository. | ||
|
||
ATTENTION: You cannot build MapLibre native using both Docker and host methods at the same time. If you want to switch, you need to clean the repository first, e.g. by using this command: | ||
|
||
```bash | ||
git clean -dxfi -e .idea -e .clwb -e .vscode | ||
``` | ||
|
||
### Build Docker Image | ||
|
||
You must build your own docker image, specific with your user and group IDs to ensure file permissions stay correct. | ||
|
||
```bash | ||
# Build docker image from the repo __root__ | ||
# Specifying USER_ID and GROUP_ID allows container to create files with the same owner as the host user, | ||
# and avoids having to pass -u $(id -u):$(id -g) to docker run. | ||
docker build \ | ||
-t maplibre-native-image \ | ||
--build-arg USER_ID=$(id -u) \ | ||
--build-arg GROUP_ID=$(id -g) \ | ||
-f platform/linux/Dockerfile \ | ||
platform/linux | ||
``` | ||
|
||
## Run Docker Container | ||
|
||
```bash | ||
# Run all build commands using the docker container. | ||
# You can also execute build commands from inside the docker container by starting it without the build command. | ||
docker run --rm -it -v "$PWD:/app/" -v "$PWD/.docker_cache:/home/user/.cache" maplibre-native-image | ||
``` | ||
|
||
You can also run any command inside the container, for example: | ||
|
||
```bash | ||
docker run --rm -it -v "$PWD:/app/" -v "$PWD/.docker_cache:/home/user/.cache" maplibre-native-image cmake ... | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters