Merge remote-tracking branch 'origin/canary' into feat/ovh-dns-provider

This commit is contained in:
Guillaume Juge
2026-09-03 10:29:31 +02:00
6 changed files with 42 additions and 21 deletions
@@ -54,7 +54,16 @@ const inputEncoding: Record<string, string> = {
DB_HOST: '"${UNDEFINED_HOST:-localhost}"',
};
describe("getCreateEnvFileCommand", () => {
const hasDocker = () => {
try {
execFileSync("docker", ["info"], { stdio: "ignore" });
return true;
} catch {
return false;
}
};
describe.skipIf(!hasDocker())("getCreateEnvFileCommand", () => {
it("writes special environment values that Docker Compose reads back literally", () => {
mkdirSync(codePath, { recursive: true });
@@ -154,7 +154,16 @@ const hasRealMonitoring = () => {
);
};
describe.skipIf(hasRealMonitoring())(
const hasDocker = () => {
try {
execSync("docker info", { stdio: "ignore" });
return true;
} catch {
return false;
}
};
describe.skipIf(!hasDocker() || hasRealMonitoring() || !process.env.CI)(
"setupMonitoring - legacy container cleanup (real docker)",
() => {
beforeEach(async () => {
+1 -1
View File
@@ -66,7 +66,7 @@
"drizzle-zod": "0.5.1",
"lodash": "4.17.21",
"micromatch": "4.0.8",
"nanoid": "3.3.11",
"nanoid": "3.3.18",
"node-os-utils": "2.0.1",
"node-pty": "1.1.0",
"node-schedule": "2.1.1",
@@ -26,9 +26,20 @@ export const getDockerCommand = (application: ApplicationNested) => {
try {
const image = `${appName}`;
const dockerContextPath = getDockerContextPath(application);
const defaultContextPath =
dockerFilePath.substring(0, dockerFilePath.lastIndexOf("/") + 1) || ".";
const commandArgs = ["build", "-t", image, "-f", dockerFilePath, "."];
const dockerContextPath =
getDockerContextPath(application) || defaultContextPath;
const commandArgs = [
"build",
"-t",
image,
"-f",
dockerFilePath,
dockerContextPath,
];
if (dockerBuildStage) {
commandArgs.push("--target", dockerBuildStage);
@@ -138,10 +138,9 @@ export const getDockerContextPath = (application: Application) => {
const { APPLICATIONS_PATH } = paths(!!application.serverId);
const { appName, dockerContextPath } = application;
return path.join(
APPLICATIONS_PATH,
appName,
"code",
dockerContextPath || ".",
);
if (!dockerContextPath) {
return null;
}
return path.join(APPLICATIONS_PATH, appName, "code", dockerContextPath);
};
+3 -10
View File
@@ -679,8 +679,8 @@ importers:
specifier: 4.0.8
version: 4.0.8
nanoid:
specifier: 3.3.11
version: 3.3.11
specifier: 3.3.18
version: 3.3.18
node-os-utils:
specifier: 2.0.1
version: 2.0.1
@@ -7186,11 +7186,6 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
nanoid@3.3.12:
resolution: {integrity: sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
nanoid@3.3.18:
resolution: {integrity: sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
@@ -16295,8 +16290,6 @@ snapshots:
nanoid@3.3.11: {}
nanoid@3.3.12: {}
nanoid@3.3.18: {}
nanostores@1.1.1: {}
@@ -16777,7 +16770,7 @@ snapshots:
postcss@8.5.15:
dependencies:
nanoid: 3.3.12
nanoid: 3.3.18
picocolors: 1.1.1
source-map-js: 1.2.1