mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat(railpack): add Docker buildx container management to buildRailpack function
This commit is contained in:
@@ -3,6 +3,7 @@ import type { ApplicationNested } from ".";
|
|||||||
import { prepareEnvironmentVariables } from "../docker/utils";
|
import { prepareEnvironmentVariables } from "../docker/utils";
|
||||||
import { getBuildAppDirectory } from "../filesystem/directory";
|
import { getBuildAppDirectory } from "../filesystem/directory";
|
||||||
import { spawnAsync } from "../process/spawnAsync";
|
import { spawnAsync } from "../process/spawnAsync";
|
||||||
|
import { execAsync } from "../process/execAsync";
|
||||||
|
|
||||||
export const buildRailpack = async (
|
export const buildRailpack = async (
|
||||||
application: ApplicationNested,
|
application: ApplicationNested,
|
||||||
@@ -16,6 +17,12 @@ export const buildRailpack = async (
|
|||||||
);
|
);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
await execAsync(
|
||||||
|
"docker buildx create --use --name builder-containerd --driver docker-container || true",
|
||||||
|
);
|
||||||
|
|
||||||
|
await execAsync("docker buildx use builder-containerd");
|
||||||
|
|
||||||
// First prepare the build plan and info
|
// First prepare the build plan and info
|
||||||
const prepareArgs = [
|
const prepareArgs = [
|
||||||
"prepare",
|
"prepare",
|
||||||
|
|||||||
Reference in New Issue
Block a user