diff --git a/plugins/scaffolder-backend/src/scaffolder/stages/templater/helpers.ts b/plugins/scaffolder-backend/src/scaffolder/stages/templater/helpers.ts index 7684735519..2bda4e0f80 100644 --- a/plugins/scaffolder-backend/src/scaffolder/stages/templater/helpers.ts +++ b/plugins/scaffolder-backend/src/scaffolder/stages/templater/helpers.ts @@ -77,24 +77,22 @@ export const runDockerContainer = async ({ // volume sharing is done using NFS on Mac and actual mounts in Linux world. // So we set the user in the container as the same user and group id as the host. const User = `${process.getuid()}:${process.getgid()}`; - console.warn('running this new'); const [{ Error: error, StatusCode: statusCode }] = await dockerClient.run( imageName, args, logStream, { Volumes: { '/result': {}, '/template': {} }, - WorkingDir: '/home', HostConfig: { Binds: [ // Need to use realpath here as Docker mounting does not like // symlinks for binding volumes `${await fs.promises.realpath(resultDir)}:/result`, `${await fs.promises.realpath(templateDir)}:/template`, - `${__dirname}:/home`, ], }, User, + Env: ['HOME=/tmp'], ...createOptions, }, );