InfiniTime/docker
febrezo 6c7eb6630e Fix git hash calculation with Docker build
Fix error when compiling the Pinetime using the Docker image.
If done with Docker, the container does not trust the /sources
folder, leading to a blank response of the command that grabs
the git commit `git rev-parse --short HEAD`.

```
fatal: detected dubious ownership in repository at '/sources'
To add an exception for this directory, call:

        git config --global --add safe.directory /sources
PROJECT_GIT_COMMIT_HASH_SUCCESS? 128

BUILD CONFIGURATION
-------------------
    * Mode : Release
    * Version : 1.3.0
    * Toolchain : /opt/gcc-arm-none-eabi-10.3-2021.10
    * GitRef(S) :
    * NRF52 SDK : /opt/nRF5_SDK_15.3.0_59ac345
    * Target device : PINETIME
    * Build DFU (using adafruit-nrfutil) : Enabled
    * Build resources : Enabled
```

If the `git config --global --add safe.directory /sources` is
added to the Dockerfile, the problem is solved and the hash is
added correctly.
2024-11-17 15:22:22 +01:00
..
.gitpod.Dockerfile docker: add git system package to image 2021-05-14 01:07:32 +03:00
build.sh docker: Make build.sh more portable 2023-01-07 18:56:15 +02:00
Dockerfile Fix git hash calculation with Docker build 2024-11-17 15:22:22 +01:00
post_build.sh.in Small improvement in generate-fonts.py following code review. 2022-09-11 14:44:36 +02:00
README.md Fix markdown format with autoformatter (#1284) 2022-08-21 14:50:09 +03:00

Docker images and build script for building the project using Docker. See this page for more info.