mirror of
https://github.com/unraid/api.git
synced 2025-12-30 21:19:49 -06:00
due to issues and redundancies in vendoring postinstall side-effects, such as compiled bindings for libvirt, we reverted to vendoring `node_modules`, installed via `npm` instead of a global pnpm store generated by `pnpm`. This should resolve runtime issues with e.g. the libvirt bindings because `node_modules` will contain the correct "side-effects." ## Summary by CodeRabbit - **New Features** - Introduced a command to remove stale archive files during the cleanup process. - Added functionality to archive the `node_modules` directory. - Enhanced dependency resolution with new overrides for specific packages. - **Chores** - Updated dependency settings by replacing one key dependency with an alternative and removing two unused ones, ensuring optimal deployment. - Enhanced the installation process to operate strictly in offline mode. - Updated artifact naming conventions for clarity and consistency in workflows. - Modified volume mappings in the Docker Compose configuration to reflect new artifact names. - Improved error handling in the GitHub Actions workflow by adding checks for required files. - Updated references in the build process to use a vendor store instead of the PNPM store. - Removed the management of PNPM store archives from the build process.
22 lines
836 B
YAML
22 lines
836 B
YAML
services:
|
|
plugin-builder:
|
|
ports:
|
|
- 5858:5858
|
|
build: .
|
|
volumes:
|
|
- ./:/app
|
|
- /app/node_modules
|
|
- ../.git:/app/.git
|
|
- ./source:/app/source
|
|
- ./scripts:/app/scripts
|
|
- ../unraid-ui/dist-wc:/app/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components/uui
|
|
- ../web/.nuxt/nuxt-custom-elements/dist/unraid-components:/app/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components/nuxt
|
|
- ../api/deploy/pack/:/app/source/dynamix.unraid.net/usr/local/unraid-api
|
|
- ../api/deploy/packed-node-modules.tar.xz:/app/packed-node-modules.tar.xz
|
|
stdin_open: true # equivalent to -i
|
|
tty: true # equivalent to -t
|
|
environment:
|
|
- HOST_LAN_IP=${HOST_LAN_IP}
|
|
- CI=${CI:-false}
|
|
- TAG=${TAG}
|