feat: support an explicit start command override per installation
Some checks failed
CI / test (push) Has been cancelled

Needed to install third-party repos we don't control (e.g. the
upstream gitea.com/gitea/gitea-mcp project) where nixpacks detects a
working build but the wrong/no start command, and pushing a
nixpacks.toml to the source repo isn't an option. Passed through as
nixpacks' own --start-cmd flag.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 06:46:28 +02:00
parent 86b365ac52
commit 1efba2461a
5 changed files with 31 additions and 3 deletions

View File

@@ -55,6 +55,7 @@ export function configureInstallation(
internalPort?: number;
basicAuthUsername?: string | null;
basicAuthPassword?: string | null;
startCommand?: string | null;
},
): Installation {
return updateInstallation(id, patch);
@@ -68,7 +69,12 @@ export async function buildInstallation(id: string): Promise<Installation> {
const imageTag = `mcpmgr/${installation.slug}:latest`;
const previousImageId = installation.imageTag ? await getImageId(installation.imageTag) : undefined;
const result = await runNixpacksBuild(installation.slug, repoDir(installation.slug), imageTag);
const result = await runNixpacksBuild(
installation.slug,
repoDir(installation.slug),
imageTag,
installation.startCommand,
);
if (!result.success) {
return updateInstallation(id, {