From 3f6ed81303b5973e5881141638a17bf7e0b80dac Mon Sep 17 00:00:00 2001 From: Dhairya Majmudar <124715224+DhairyaMajmudar@users.noreply.github.com> Date: Sat, 28 Sep 2024 10:26:34 +0530 Subject: [PATCH] fix: modifying docker script for generating template (#3213) Co-authored-by: Akshat Nema <76521428+akshatnema@users.noreply.github.com>%0ACo-authored-by: asyncapi-bot --- components/GeneratorInstallation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/GeneratorInstallation.tsx b/components/GeneratorInstallation.tsx index d280a2199e48..713e819198e8 100644 --- a/components/GeneratorInstallation.tsx +++ b/components/GeneratorInstallation.tsx @@ -62,7 +62,7 @@ asyncapi generate fromTemplate ${specPath} ${template} ${params}`; * @returns {string} The Docker command. */ function getDockerCode(): string { - return `docker run --rm -it -v \${PWD}/example:/app/example -v \${PWD}/output:/app/output \\ + return `docker run --rm -it --user=root -v \${PWD}/example:/app/example -v \${PWD}/output:/app/output \\ asyncapi/cli generate fromTemplate ${specPath} ${template} ${params}`; }