From 0b4cbf68d5f5ad6758a3635aaf280d8cf8c617d3 Mon Sep 17 00:00:00 2001 From: Danilo Tuler Date: Fri, 18 Oct 2024 11:41:29 -0400 Subject: [PATCH] fixup! feat(cli): build based on configuration using new cartesi-machine options --- apps/cli/src/machine.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/cli/src/machine.ts b/apps/cli/src/machine.ts index 3b37afc7..0a734ab3 100644 --- a/apps/cli/src/machine.ts +++ b/apps/cli/src/machine.ts @@ -38,9 +38,7 @@ export const bootMachine = async ( // list of environment variables of docker image const env = info?.env ?? []; - const envs = env.map( - (variable) => `--append-entrypoint=export "${variable}"`, - ); + const envs = env.map((variable) => `--env=${variable}`); // check if we need a rootfstype boot arg const root = config.drives.root; @@ -89,7 +87,7 @@ export const bootMachine = async ( args.push("--final-hash"); } if (info?.workdir) { - args.push(`--append-init=WORKDIR="${info.workdir}"`); + args.push(`--workdir="${info.workdir}"`); } if (interactive) { args.push("-it"); @@ -104,7 +102,7 @@ export const bootMachine = async ( args.push(`--store=${store}`); } if (user) { - args.push(`--append-init=USER=${user}`); + args.push(`--user=${user}`); } return execaDockerFallback(command, args, {