@replayio/app-building 1.20.0 → 1.21.0
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/dist/container.js +4 -4
- package/package.json +1 -1
package/dist/container.js
CHANGED
|
@@ -35,7 +35,7 @@ export function buildImage(config) {
|
|
|
35
35
|
if (!config.projectRoot)
|
|
36
36
|
throw new Error("projectRoot is required for local Docker operations");
|
|
37
37
|
console.log("Building Docker image...");
|
|
38
|
-
execFileSync("docker", ["build", "--network", "host", "-t", IMAGE_NAME, config.projectRoot], {
|
|
38
|
+
execFileSync("docker", ["build", "--platform", "linux/amd64", "--network", "host", "-t", IMAGE_NAME, config.projectRoot], {
|
|
39
39
|
stdio: "inherit",
|
|
40
40
|
timeout: 600000,
|
|
41
41
|
});
|
|
@@ -49,7 +49,7 @@ function ensureImageExists(projectRoot) {
|
|
|
49
49
|
}
|
|
50
50
|
catch {
|
|
51
51
|
console.log("Building Docker image...");
|
|
52
|
-
execFileSync("docker", ["build", "--network", "host", "-t", IMAGE_NAME, projectRoot], {
|
|
52
|
+
execFileSync("docker", ["build", "--platform", "linux/amd64", "--network", "host", "-t", IMAGE_NAME, projectRoot], {
|
|
53
53
|
stdio: "inherit",
|
|
54
54
|
timeout: 600000,
|
|
55
55
|
});
|
|
@@ -128,7 +128,7 @@ async function startLocalContainer(config, repo) {
|
|
|
128
128
|
const extra = buildExtraEnv(config, containerName);
|
|
129
129
|
extra.PORT = String(containerPort);
|
|
130
130
|
const containerEnv = buildContainerEnv(repo, config.infisical, extra);
|
|
131
|
-
const args = ["run", "-d", "--rm", "--name", containerName];
|
|
131
|
+
const args = ["run", "--platform", "linux/amd64", "-d", "--rm", "--name", containerName];
|
|
132
132
|
args.push("-p", `${hostPort}:${containerPort}`);
|
|
133
133
|
for (const [k, v] of Object.entries(containerEnv)) {
|
|
134
134
|
args.push("--env", `${k}=${v}`);
|
|
@@ -331,7 +331,7 @@ export function spawnTestContainer(config) {
|
|
|
331
331
|
ensureImageExists(config.projectRoot);
|
|
332
332
|
const uniqueId = Math.random().toString(36).slice(2, 8);
|
|
333
333
|
const containerName = `app-building-test-${uniqueId}`;
|
|
334
|
-
const args = ["run", "-it", "--rm", "--name", containerName];
|
|
334
|
+
const args = ["run", "--platform", "linux/amd64", "-it", "--rm", "--name", containerName];
|
|
335
335
|
args.push("-v", `${config.projectRoot}:/repo`);
|
|
336
336
|
args.push("-w", "/repo");
|
|
337
337
|
args.push("--network", "host");
|