@tsed/cli-core 3.20.2 → 3.20.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +9 -6
- package/lib/index.js.map +1 -1
- package/lib/index.modern.js +9 -6
- package/lib/index.modern.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -3585,11 +3585,13 @@ exports.CliDockerComposeYaml = class CliDockerComposeYaml {
|
|
|
3585
3585
|
const dockerCompose = await this.read();
|
|
3586
3586
|
|
|
3587
3587
|
if (dockerCompose) {
|
|
3588
|
+
let value;
|
|
3589
|
+
|
|
3588
3590
|
switch (database) {
|
|
3589
3591
|
case "mysql":
|
|
3590
3592
|
case "mariadb":
|
|
3591
|
-
|
|
3592
|
-
image: database === "mysql" ? "mysql:
|
|
3593
|
+
value = {
|
|
3594
|
+
image: database === "mysql" ? "mysql:8.0.28-oracle" : "mariadb:10.7.3",
|
|
3593
3595
|
ports: ["3306:3306"],
|
|
3594
3596
|
environment: {
|
|
3595
3597
|
MYSQL_ROOT_PASSWORD: "admin",
|
|
@@ -3601,7 +3603,7 @@ exports.CliDockerComposeYaml = class CliDockerComposeYaml {
|
|
|
3601
3603
|
break;
|
|
3602
3604
|
|
|
3603
3605
|
case "postgres":
|
|
3604
|
-
|
|
3606
|
+
value = {
|
|
3605
3607
|
image: "postgres:9.6.1",
|
|
3606
3608
|
ports: ["5432:5432"],
|
|
3607
3609
|
environment: {
|
|
@@ -3613,7 +3615,7 @@ exports.CliDockerComposeYaml = class CliDockerComposeYaml {
|
|
|
3613
3615
|
break;
|
|
3614
3616
|
|
|
3615
3617
|
case "cockroachdb":
|
|
3616
|
-
|
|
3618
|
+
value = {
|
|
3617
3619
|
image: "cockroachdb/cockroach:v2.1.4",
|
|
3618
3620
|
command: "start --insecure",
|
|
3619
3621
|
ports: ["26257:26257"]
|
|
@@ -3621,7 +3623,7 @@ exports.CliDockerComposeYaml = class CliDockerComposeYaml {
|
|
|
3621
3623
|
break;
|
|
3622
3624
|
|
|
3623
3625
|
case "mssql":
|
|
3624
|
-
|
|
3626
|
+
value = {
|
|
3625
3627
|
image: "mcr.microsoft.com/mssql/server:2017-latest",
|
|
3626
3628
|
command: "start --insecure",
|
|
3627
3629
|
ports: ["1433:1433"],
|
|
@@ -3633,13 +3635,14 @@ exports.CliDockerComposeYaml = class CliDockerComposeYaml {
|
|
|
3633
3635
|
break;
|
|
3634
3636
|
|
|
3635
3637
|
case "mongodb":
|
|
3636
|
-
|
|
3638
|
+
value = {
|
|
3637
3639
|
image: "mongo:4.1",
|
|
3638
3640
|
ports: ["27017:27017"]
|
|
3639
3641
|
};
|
|
3640
3642
|
break;
|
|
3641
3643
|
}
|
|
3642
3644
|
|
|
3645
|
+
core.setValue(dockerCompose, `services.${changeCase.snakeCase(name)}`, value);
|
|
3643
3646
|
await this.write(dockerCompose);
|
|
3644
3647
|
}
|
|
3645
3648
|
}
|