Commit Graph
87 Commits
Author SHA1 Message Date
Logan Cary 416f10675f fix build (#865) 2025-05-28 14:38:17 -04:00
sonicaj 1c7b41c3b0 Allow specifying secret_env for packages as env variables (#846) 2025-04-30 15:09:44 +05:00
sonicaj 76b930d18c NAS-134870 / 25.10 / Allow specifying secret env variables in the build (#842)
* Allow specifying secret_env in build manifest

* Get secret env initialized when initializing package

* Add logic to read secrets file

* Make sure secrets are properly set for package when building the package

* Expose scale release version variable as well

* Fix typo

* Make sure env variables are actually passed to the package itself

* Add secrets yaml file to git ignore

* Do not expose build env variables in ps output
2025-04-18 20:34:12 +05:00
Caleb St. John a506fbac05 NAS-133293 / 25.04 / remove psutil from truenas_install (#796) 2024-12-28 16:18:59 -05:00
themylogin 1e57ff583b Move nvidia extension to the rootfs image (#762) 2024-11-21 08:07:42 -05:00
sonicaj 85f8a44a62 NAS-132571 / 25.04 / Internal apt mirror support (#761)
* Reflect the debian manifest we want

* Update json schema to reflect new base-url entries

* Have a util in place to retrieve apt mirrors

* Have repo url in repos hash

* Cover various usages of apt-repos
2024-11-17 17:52:13 +05:00
Caleb St. John d8b7cacbf1 Revert "NAS-132446 / 25.04 / Initial add of option to use internal APT repo for builds (#754)" (#759) 2024-11-15 15:33:40 -05:00
Kris Moore 5f95982024 NAS-132446 / 25.04 / Initial add of option to use internal APT repo for builds (#754)
* Initial add of option to use internal APT repo for builds

* Pet flake8

* Wrap a long f-string

* Use f-string in right place

* Fix usage of single / double quotes

* Move to apt_get_base_url as a function

* Undo dyslexia

* Log which base url we are using in bootstrap for debugging

* Add missing location to use the base url in bootstrap

* Use base url when bootstrapping the ISO as well

* Add APT_BASE_CUSTOM as another override option if the builder
wants to pull from some location other than the two in our manifest
2024-11-14 10:18:27 -05:00
themylogin d03f1da363 Validate all array items of the build.manifest, not just the first one 2024-08-12 12:15:54 +02:00
Waqar Ahmed cc74620ea2 Ensure required reference files exist in base chroot 2023-12-29 23:47:50 +05:00
Waqar Ahmed e7a4ecaa61 Refactor file comparison logic to separate util file 2023-12-26 00:31:50 +05:00
themylogin cff0ea8fee Do not use dkms for nvidia 2023-07-10 16:00:15 +02:00
Waqar Ahmed f4362b125a Update required attrs of additional packages 2023-06-02 00:39:38 +04:00
Waqar Ahmed d0b3357de6 Update additional-packages schema to use name attr instead of package attr 2023-06-02 00:35:34 +04:00
Waqar Ahmed d78abe4b05 Update additonal-packages schema to allow specifying install_recommends attribute 2023-06-01 23:30:06 +04:00
Waqar Ahmed 3c83ae9f1c Update base-packages schema to make each entry a dict always 2023-06-01 23:28:13 +04:00
Waqar Ahmed b0e8be83e4 Improve logging entries 2023-06-01 19:41:42 +04:00
Waqar Ahmed 37f655aac6 Update build manifest to allow specifying dict for base-packages 2023-06-01 10:21:29 +04:00
Waqar Ahmed 187576eb42 Rename ccache to supports_ccache 2023-05-24 16:40:46 +04:00
Waqar Ahmed a28f459d85 Allow specifying ccache for individual packages 2023-05-24 10:04:35 +04:00
Waqar Ahmed 049985e4fa Create/manage ccache dir under tmpdir 2023-05-24 10:02:21 +04:00
Waqar Ahmed e63cd5b38d Kernel module is no longer a valid field in manifest 2023-05-10 01:10:12 +04:00
Waqar Ahmed 3188b8a7e9 Allow specifying depscmd 2023-05-05 05:45:30 +04:00
Waqar Ahmed 5fe69cf63c Remove extra conditional 2023-04-13 19:22:19 +05:00
Waqar Ahmed 68d51b8a5d Do not mark subdir as required for sub packages 2023-04-05 21:53:09 +05:00
Waqar Ahmed 3a33349728 Do not send subpackages as keyword argument to package instantation 2023-04-05 21:53:09 +05:00
Waqar Ahmed 4bbc3655d4 Fix validation issues in manifest 2023-04-05 21:53:09 +05:00
Waqar Ahmed fd29acc80a Specify branch/repo schema 2023-04-05 21:53:09 +05:00
Waqar Ahmed 9fb76bfd05 Enforce subdir in schema for sub packages 2023-04-05 21:53:09 +05:00
Waqar Ahmed 4dcd10984d Define source name separately 2023-04-05 21:53:09 +05:00
Waqar Ahmed b7c32ee5fa Refactor get packages to factor in sub packages 2023-04-05 21:53:09 +05:00
Waqar Ahmed c02d8ac4a9 Allow specifying subpackages in sources 2023-04-05 21:53:09 +05:00
themylogin f1b38c78bb make check_upstream_package_updates to check forked Debian repos and python-truenas-requirements 2022-11-02 19:58:19 +01:00
Waqar Ahmed 82cd27cbce Move reference files to utils 2022-08-21 22:31:21 +05:00
Waqar Ahmed e52947ce83 Allow specifying a default for ssh based identity path 2022-08-06 21:00:35 +05:00
Waqar Ahmed 76e58810a0 Correctly get hostname/repo path from ssh based source 2022-08-05 16:47:17 +05:00
Waqar Ahmed a805019522 Allow conditional consideration of specified sources for building/checkout 2022-08-05 15:34:47 +05:00
Waqar Ahmed d6daf10da7 Add validation for ssh based repo sources 2022-08-04 20:43:30 +05:00
Waqar Ahmed 6c73725867 Add identity file path as being valid attribute 2022-08-04 19:04:44 +05:00
Waqar Ahmed 21961d6d6c Mark ixsystems orginsation as a valid source for packages 2022-08-04 16:34:59 +05:00
M. Rehan 31ce04b2d4 Merge pull request #287 from truenas/NAS-115409
NAS-115409 / 22.12 / Dynamically generate apt sources
2022-04-25 21:54:08 +05:00
themylogin a9d16d5436 Try to persist uids and gids across builds 2022-04-18 13:22:16 +02:00
M. Rehan 7c4d910994 Dynamically generate apt sources 2022-04-18 16:04:40 +05:00
M. Rehan 8aea4f7977 Ensure apt preferences are listed in alphabetical order 2022-04-08 05:42:35 +05:00
M. Rehan a7395e99fa Log git checkout of each package separately 2022-04-08 01:49:15 +05:00
Waqar Ahmed e64d879d28 Fix regex for updating branches in branchout 2021-10-11 08:50:19 +05:00
Waqar Ahmed a699b3b6d2 Allow skipping source validation for dev purposes 2021-08-19 15:33:37 +05:00
Waqar Ahmed 8bd0382b89 Add validation to ensure that packages only build from truenas organization 2021-08-19 12:39:39 +05:00
Waqar Ahmed 1bcbb839f8 Remove committing unused code 2021-08-17 01:19:50 +05:00
Waqar Ahmed a2209f2df9 Properly log committing scale-build change 2021-08-16 23:27:34 +05:00