The original implementation installed yarn inside the pdebuilder image [1]. But THERE'S a yarn/nodejs BUG [2] that prevents it from detecting networking is available and thus cannot be run. Looking forward for enhancing pull requests :-D [1] https://gitlab.com/koha-community/koha-dpkg-docker/-/blob/bfdbbd326e9e1e59fb... [2] The error we got: "/usr/bin/perl" build-resources.PL yarn install v1.22.19 warning You don't appear to have an internet connection. Try the --offline flag to use the cache for registry queries. warning Skipping preferred cache folder "/nonexistent/.cache/yarn" because it is not writable. warning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-1234". [1/4] Resolving packages... [2/4] Fetching packages... <https://github.com/bywatersolutions/bywater-koha-future/actions/runs/4688302412/jobs/8398838574#step:7:4400> error An unexpected error occurred: " https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz: getaddrinfo EAI_AGAIN registry.yarnpkg.com registry.yarnpkg.com:443". El mié, 26 abr 2023 a las 20:08, David Cook (<dcook@prosentient.com.au>) escribió:
This looks like a weird hack to me. When the package is built, build-resources.PL should be invoked via the Makefile.
What’s the problem that’s leading to this workaround?
David Cook
Senior Software Engineer
Prosentient Systems
Suite 7.03
6a Glen St
Milsons Point NSW 2061
Australia
Office: 02 9212 0899
Online: 02 8005 0595
*From:* Koha-devel <koha-devel-bounces@lists.koha-community.org> *On Behalf Of *Tomas Cohen Arazi *Sent:* Wednesday, 26 April 2023 11:25 PM *To:* koha-devel <koha-devel@lists.koha-community.org> *Subject:* [Koha-devel] Bug 32609 and package building
There's a conversation going on on the bug, about how that change made the build process a bit more complicated (i.e. more steps).
Kyle and I have been working on this:
https://gitlab.com/koha-community/koha-dpkg-docker#usage
which is a simple way to build packages, and considers that required step.
Hope it helps.
--
Tomás Cohen Arazi
Theke Solutions (http://theke.io) ✆ +54 9351 3513384 GPG: B2F3C15F
-- Tomás Cohen Arazi Theke Solutions (http://theke.io) ✆ +54 9351 3513384 GPG: B2F3C15F