Skip to content

Commit

Permalink
Fix docker call
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Jan 1, 2025
1 parent 1667a7d commit bcbffb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/utils/mermaidUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export async function generateMarkdownFileWithMermaid(outputFlowMdFileIn: string
export async function generateMarkdownFileWithMermaidDocker(outputFlowMdFileIn: string, outputFlowMdFileOut: string): Promise<boolean> {
const fileDir = path.resolve(path.dirname(outputFlowMdFileIn));
const fileName = path.basename(outputFlowMdFileIn);
const dockerCommand = `docker run --rm -v "${fileDir}:/data" ghcr.io/mermaid-js/mermaid-cli/mermaid-cli -i "${fileName}" -o "${outputFlowMdFileOut}"`;
const fileOut = path.basename(outputFlowMdFileOut);
const dockerCommand = `docker run --rm -v "${fileDir}:/data" ghcr.io/mermaid-js/mermaid-cli/mermaid-cli -i "${fileName}" -o "${fileOut}"`;
try {
await execCommand(dockerCommand, this, { output: false, fail: true, debug: false });
return true;
Expand Down

0 comments on commit bcbffb2

Please sign in to comment.