InfiniTime/docker
NeroBurner 6f2a661a36
docker: fix NRF_SDK download and subsequent build.sh (#2299)
The upstream NRF-SDK download url and zip archive filename changed,
which was fixed with https://github.com/InfiniTimeOrg/InfiniTime/pull/2270

But the archive contents stayed the same, with the "old" folder name.

After #2270 we have basically the same docker-container as before the PR,
but the `GetNrfSdk` function of the `build.sh` script is called again during
firmware build time as the expected foldername for the SDK isn't the same as
the zip filename:

```sh
[ ! -d "$TOOLS_DIR/$NRF_SDK_VER" ] && GetNrfSdk
```

Then during the build the `buils.sh` script tries to execute `GetNrfSdk` again,
which fails as the files already exist resulting in the following error:

```
replace /opt/nRF5_SDK_15.3.0_59ac345/components/802_15_4/api/HAL/hal_atomic.h? [y]es, [n]o, [A]ll, [N]one, [r]ename:  NULL
```

Fix this by reverting the `NRF_SDK_VER` to the folder name in the zip
archive and by some character replacement generate the download URL from
the above (the download is in lower-case without the `_` and `.`
characters).

Furthermore add safeguards to check after the `GetNrfSdk` call if the
expected folder is really created. Then we have an error early during
container image creation if the contents of the zip-archive are
unexpected.
2025-05-27 22:56:10 +02:00
..
.gitpod.Dockerfile docker: add git system package to image 2021-05-14 01:07:32 +03:00
build.sh docker: fix NRF_SDK download and subsequent build.sh (#2299) 2025-05-27 22:56:10 +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.