mirror of
https://github.com/immich-app/static-pages.git
synced 2026-09-30 13:23:05 +08:00
fix(compose): Remove unused volume mappings for machine learning (#770)
This commit is contained in:
@@ -166,11 +166,7 @@ describe('buildCompose', () => {
|
||||
expect(spec.services[name].security_opt).toEqual(['no-new-privileges:true']);
|
||||
expect(spec.services[name].cap_drop).toEqual(['NET_RAW']);
|
||||
}
|
||||
expect(spec.services['immich-machine-learning'].volumes).toEqual([
|
||||
'./ml-model-cache:/cache',
|
||||
'./ml-dotcache:/.cache',
|
||||
'./ml-config:/.config',
|
||||
]);
|
||||
expect(spec.services['immich-machine-learning'].volumes).toEqual(['./ml-model-cache:/cache']);
|
||||
expect(spec.services.redis.volumes).toEqual(['./redis:/data']);
|
||||
expect(spec.volumes).toBeUndefined();
|
||||
});
|
||||
@@ -226,8 +222,6 @@ describe('buildCompose', () => {
|
||||
|
||||
expect(spec.services['immich-machine-learning'].volumes).toEqual([
|
||||
'./ml-model-cache:/cache',
|
||||
'./ml-dotcache:/.cache',
|
||||
'./ml-config:/.config',
|
||||
'/dev/bus/usb:/dev/bus/usb',
|
||||
]);
|
||||
expect(spec.services.redis.volumes).toEqual(['./redis:/data']);
|
||||
|
||||
@@ -12,7 +12,7 @@ export const rootlessHardening = ({ uid, gid }: ImmichConfig['rootless']): Compo
|
||||
});
|
||||
|
||||
export const ROOTLESS_VOLUMES = new Map<string, string[]>([
|
||||
['immich-machine-learning', ['./ml-model-cache:/cache', './ml-dotcache:/.cache', './ml-config:/.config']],
|
||||
['immich-machine-learning', ['./ml-model-cache:/cache']],
|
||||
['redis', ['./redis:/data']],
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user