You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/cli/src/compas/commands/docker.js
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ export const cliDefinition = {
22
22
name: "docker",
23
23
shortDescription: "Manage common docker components.",
24
24
longDescription: `Manages a single PostgreSQL and Minio container for use in all your local projects.
25
-
It can switch between multiple PostgreSQL versions (12, 13 and 14 are supported via --postgres-version), however only a single version can be 'up' at a time.
25
+
It can switch between multiple PostgreSQL versions (12-16 are supported via --postgres-version), however only a single version can be 'up' at a time.
You can prevent Docker usage, but still use commands like 'compas docker clean' with either the '--use-host' flag or by setting 'COMPAS_SKIP_DOCKER=true' in your environment.
34
35
36
+
---
35
37
Don't use this command and secrets for your production deployment.
36
38
`,
37
39
modifiers: {
@@ -82,7 +84,8 @@ The flag is repeatable, so multiple projects can be cleaned at the same time. If
82
84
value: {
83
85
specification: "number",
84
86
validator: (value)=>{
85
-
constisValid=[12,13,14].includes(value);
87
+
constversions=[12,13,14,15,16];
88
+
constisValid=versions.includes(value);
86
89
87
90
if(isValid){
88
91
return{ isValid };
@@ -91,7 +94,7 @@ The flag is repeatable, so multiple projects can be cleaned at the same time. If
91
94
return{
92
95
isValid,
93
96
error: {
94
-
message: "Only PostgreSQL version 12, 13 and 14 are supported.",
97
+
message: `The following PostgreSQL versions are supported: ${versions.join(", ")}.`,
95
98
},
96
99
};
97
100
},
@@ -467,6 +470,8 @@ function getContainerInformation(postgresVersion, useHost) {
0 commit comments