dependency-track: stop bundling frontend in jar (#386408)

xanderio 8bc3ee63 1b36d285

Changed files
+12 -8
nixos
doc
manual
release-notes
modules
services
tests
pkgs
by-name
de
dependency-track
+4
nixos/doc/manual/release-notes/rl-2505.section.md
···
[Prisma ORM upgrade guide](https://www.prisma.io/docs/orm/more/upgrade-guides/upgrading-versions/upgrading-to-prisma-6)
for more information.
+
- `depdendency-track` no longer bundes the UI inside the jar. This bundling
+
functionality is deprecated by upstream and causes UI assets not being served
+
after weeks of runtime.
+
- `nq` was updated to 1.0, which renames the `fq` and `tq` utilities to `nqtail` and `nqterm` respectively.
- `zf` was updated to 0.10.2, which includes breaking changes from the [0.10.0 release](https://github.com/natecraddock/zf/releases/tag/0.10.0).
+2 -1
nixos/modules/services/web-apps/dependency-track.nix
···
upstreams.dependency-track.servers."localhost:${toString cfg.port}" = { };
virtualHosts.${cfg.nginx.domain} = {
locations = {
-
"/".proxyPass = "http://dependency-track";
+
"/".alias = "${cfg.package.frontend}/dist/";
+
"/api".proxyPass = "http://dependency-track";
"= /static/config.json".alias = frontendConfigFile;
};
};
+1
nixos/tests/dependency-track.nix
···
virtualisation = {
cores = 2;
diskSize = 4096;
+
memorySize = 1024 * 2;
};
environment.systemPackages = with pkgs; [ curl ];
+5 -7
pkgs/by-name/de/dependency-track/package.nix
···
hash = "sha256-IcahhuWX1Ba7kmyJaNJlY1gcVHOR6uynyr7w5MMwRgo=";
};
+
installPhase = ''
+
mkdir $out
+
cp -R ./dist $out/
+
'';
+
npmDepsHash = "sha256-LeSKSZYtjrZ84RkhGbLEMHVi1fw7FK/137F0V4hjSCE=";
forceGitDeps = true;
makeCacheWritable = true;
···
"-Dmaven.test.skip=true"
"-P enhance"
"-P embedded-jetty"
-
"-P bundle-ui"
"-Dservices.bom.merge.skip=false"
"-Dlogback.configuration.file=${src}/src/main/docker/logback.xml"
"-Dcyclonedx-cli.path=${lib.getExe cyclonedx-cli}"
];
-
-
preBuild = ''
-
mkdir -p frontend
-
cp -r ${frontend}/lib/node_modules/@dependencytrack/frontend/dist frontend/
-
'';
afterDepsSetup = ''
mvn cyclonedx:makeBom -Dmaven.repo.local=$mvnDeps/.m2 \
···
'';
passthru = {
-
# passthru for nix-update
inherit frontend;
tests = {
inherit (nixosTests) dependency-track;