aboutsummaryrefslogtreecommitdiffstats
path: root/docker
Commit message (Collapse)AuthorAgeFilesLines
* fixed libpango1.0-dev installkon-foo2025-05-301-1/+1
|
* docker: fix NRF_SDK download and subsequent build.sh (#2299)NeroBurner2025-05-271-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix nRF SDK download links (#2270)Darius Arnold2025-05-211-2/+2
| | | nRF has moved the download to a new location- Update the build script to fetch from the same URL the download website currently provides.
* Fix git hash calculation with Docker buildfebrezo2024-11-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Unify docker devcontainer with dockerfile used for CI (#1587)BloodStainedCrow2024-03-231-0/+10
| | | | | | | | | | | | | | | | | | | | * Only use one Dockerfile and build.sh script for both docker and devcontainer * Remove all now unneccessary tasks and scripts * Update to clang-format-14 * Move devcontainer.json into root folder * Fix conditional statements in Dockerfile * Move .devcontainer/README into doc/usingDevcontainers * Remove obsolete VSCode Task * Change standard compiler path to the correct compiler * Set GDB Path for debugging * Hide broken buttons from CMake Extension * Refactor .devcontainer * Remove unneccessary postBuildCommand * Add devcontainer dependencies to all docker images * Add Devcontainer Debug launch config * Add an additional c_cpp_properties config as a fallback for devcontainer * Remove obsolete Docker Argument * Fix wrong C/Cpp versions * Fix silent fail of gdb, add libncurses5
* docker: Install Node.js in a non-deprecated way (#1849)Ben Merritt2023-11-121-3/+7
|
* lv_img_conv_py: minimal python port of node moduleReinhold Gschweicher2023-10-261-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a minimal python port of the node.js module `lv_img_conv`. Only the currently in use color formats `CF_INDEXED_1_BIT` and `CF_TRUE_COLOR_ALPHA` are implemented. Output only as binary with format `ARGB8565_RBSWAP`. This is enough to create the `resources-1.13.0.zip`. Python3 implements "propper" "banker's rounding" by rounding to the nearest even number. Javascript rounds to the nearest integer. To have the same output as the original JavaScript implementation add a custom rounding function, which does "school" rounding (to the nearest integer) Update CMake file in `resources` folder to call `lv_img_conf.py` instead of node module. For docker-files install `python3-pil` package for `lv_img_conv.py` script. And remove the `lv_img_conv` node installation. --- gen_img: special handling for python lv_img_conv script Not needed on Linux systems, as the shebang of the python script is read and used. But just to be sure use the python interpreter found by CMake. Also helps if tried to run on Windows host. --- doc: buildAndProgram: remove node script lv_img_conv mention Remove node script `lv_img_conv` mention and replace it for runtime-depency `python3-pil` of python script `lv_img_conv.py`.
* docker: Make build.sh more portableRiku Isokoski2023-01-071-9/+9
|
* Revert "enable CMake unity build in build.sh"Riku Isokoski2022-12-311-1/+0
| | | | This reverts commit 35654fbd982e27383ffc15446d9ab0a8606ae29d.
* Revert "Update docker/build.sh"Riku Isokoski2022-12-311-1/+1
| | | | This reverts commit 7103f9d8063431b778df83244de5862d963e1ce8.
* Update docker/build.shDominik Nussbaumer2022-12-271-1/+1
| | | Co-authored-by: NeroBurner <pyro4hell@gmail.com>
* enable CMake unity build in build.shtnixeu2022-12-271-0/+1
|
* fixing build.sh not returning error in build (#1460)cybuzuma2022-12-131-1/+11
| | | | | | | | | | Return the build status as return code from the `main` helper function. In the process convert the handling if the file was sourced or directly executed into an explicit if/else statement to make the intent clearer. In case of an build error the error is now reported at the build step, where the error happened. Fixes: https://github.com/InfiniTimeOrg/InfiniTime/issues/1292
* Remove CMake targets and corresponding CLI arguments that are specific to ↵Jean-François Milants2022-09-171-1/+0
| | | | the debugging environment (USE_JLINK, USE_OPENOCD and USE_GDB_CLIENT).
* Small improvement in generate-fonts.py following code review.Jean-François Milants2022-09-113-1/+18
| | | | Add lv_img_conf in Docker image to build resources at build time.
* Fix markdown format with autoformatter (#1284)Riku Isokoski2022-08-211-1/+1
|
* Downgrade GNU Arm Toolchain to 10.3-2021.10Finlay Davidson2022-07-081-3/+3
| | | | | | This is because of this bug: https://community.arm.com/support-forums/f/compilers-and-libraries-forum/52623/gcc-11-2-arm-none-eabi-internal-compiler-error-illegal-instruction It is causing some of the GitHub Actions builds to fail.
* Update arm gcc toolchain to 11.2-2022.02Finlay Davidson2022-06-111-6/+7
| | | | | | Updates the buildAndProgram doc and the docker image, which means GitHub Actions will also use the new toolchain.
* The main build workflow for GitHub Actions now uses the infinitime-build ↵Jean-François Milants2022-05-263-21/+10
| | | | | | docker image to build the firmware. This allows to avoid the duplication of the build logic in Docker and Github workflow format. The Dockerfile has been slightly adapted (remove the USER instructions). Docker images are now published in DockerHub (jf002/infinitime-build).
* update docker to 22, and use python3 by defaultYehoshua Pesach Wallach2022-05-101-3/+4
|
* docker: bump ubuntu to 20.04 and node to 18Yehoshua Pesach Wallach2022-05-101-2/+3
|
* fontgen: install npm, lv_font_conv in DockerfileYehoshua Pesach Wallach2022-05-101-1/+5
|
* Update git URLS, MCUboot is now independent w/ different GitHub org.carlosperate2021-10-171-1/+1
|
* docker: add git system package to imageStoian Minaiev2021-05-142-0/+6
|
* Gitpod workspace path update due to repo renamePeter2021-04-181-4/+5
| | | | | Gitpod workspace path is based on repo name... it was `/workspace/Pinetime`, but after the repo rename it's now `/workspace/InfiniTime`. Also added second pip call as it's in the main dockerfile.
* Merge branch 'develop' into recovery-firmwareJean-François Milants2021-03-071-0/+1
|\ | | | | | | | | | | | | | | # Conflicts: # src/CMakeLists.txt # src/displayapp/DisplayApp.h # src/systemtask/SystemTask.cpp # src/systemtask/SystemTask.h
| * Fix merge conflict.Jean-François Milants2021-02-141-0/+1
| |
* | Add new cmake option to disable the generation of DFU file (which needs ↵Jean-François Milants2021-02-011-0/+1
| | | | | | | | adafruit-nrfutil on the build machine) : BUILD_DFU (disabled by default, enabled in docker build).
* | Generate pinetime-recovery : a light version of InfiniTime design to be used ↵Jean-François Milants2021-01-262-8/+6
|/ | | | | | | | | as a recovery firmware : it only provides basic UI and BLE connectivity for OTA. This new FW is build on the same codebasse than the actual InfiniTime. Only the display task is different (this allows to remove lvgl from the recovery fw, which is very heavy). CMake builds and docker have been modified accordingly. Note than the fw is converted into an image and then into a DFU in the cmake build (previously, it was only done in the
* check for cmake build-success before running post-build.shpetter2021-01-231-3/+5
|
* Use root for package installationJoe Eaves2021-01-051-3/+4
| | | | | And forget the chown. sudo can be used if the dependencies ever need to be updated "live"
* Custom Dockerfile for gitpod.ioJoe Eaves2021-01-051-0/+38
| | | | Little configuration to give https://gitpod.io users an environment with the SDKs pre-installed
* Improve the post_build again, again?Joe Eaves2020-12-221-7/+10
|
* Make the post_build output a little cleanerJoe Eaves2020-12-221-6/+7
|
* Make TOOLS_DIR if neededJoe Eaves2020-12-221-0/+3
| | | | Added some extra dir names to gitignore
* Integrate improvements from #137Joe Eaves2020-12-213-25/+23
| | | | Also fixed a bug with empty quoted strings
* Unify the Dockerfiles by fleshing out build.shJoe Eaves2020-12-216-85/+128
| | | | Script is written to handle it's own dependencies so it can be used within Docker or on the host system
* Add cleanup and make download stages more readablePeter Feerick2020-12-122-6/+18
|
* Expand update block for readability and add cleanupPeter Feerick2020-12-122-2/+31
|
* Move user block to reduce layer change breakage + tweaksPeter Feerick2020-12-122-14/+10
|
* Reference specific architecturesPeter Feerick2020-12-122-2/+2
|
* Rename dockerfile folders to correct architecturesPeter Feerick2020-11-202-0/+0
|
* Update to the latest version of the bootloader ↵JF2020-09-201-1/+1
| | | | (https://github.com/lupyuen/pinetime-rust-mynewt/releases/tag/v5.0.4)
* Docker post build : generate post build script with versions from the CMake ↵JF2020-09-081-2/+2
| | | | project.
* Docker build : split build.sh into 2 scripts : build.sh that always exists ↵JF2020-08-202-9/+14
| | | | and post_build.sh that is generated by cmake build.sh
* All output files (bin, hex, image, dfu) contain the version of the project ↵JF2020-08-193-8/+20
| | | | | | | in their filename. Update Docker build script accordingly. Also fix permission issue with docker build (all files belonged to root).
* Add doc about Docker image.JF2020-08-191-0/+2
|
* Add docker file create docker image that builds the project on amd64 and ↵JF2020-08-193-0/+45
arm64 arch.