Skip to content

Commit b1395a9

Browse files
committed
throw Error on usage of manifest.image.external_vol
1 parent 7969141 commit b1395a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/dappmanager/src/modules/manifest/manifestToCompose.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ export function manifestToCompose(manifest: ManifestWithImage): Compose {
2525
for (const vol of parseVolumeMappings(image.volumes))
2626
if (vol.name) volumes[vol.name] = {};
2727

28+
// FORBID, DEPRECATED features
29+
if (((image as unknown) as { external_vol: string[] }).external_vol) {
30+
throw Error("External volumes are not allowed");
31+
}
32+
2833
// Clean undefined and empty values
2934
// Using ternary operators and undefined to avoid using if statements
3035
// and have a clearer docker-compose looking syntax

0 commit comments

Comments
 (0)