From 92f3e58640be342ec9cfe28884e8a26be7fa6f10 Mon Sep 17 00:00:00 2001 From: blam Date: Mon, 10 Aug 2020 20:53:56 +0200 Subject: [PATCH] chores(scaffolder): trying something new --- .../src/scaffolder/stages/templater/helpers.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/scaffolder-backend/src/scaffolder/stages/templater/helpers.ts b/plugins/scaffolder-backend/src/scaffolder/stages/templater/helpers.ts index 12ec1be143..7684735519 100644 --- a/plugins/scaffolder-backend/src/scaffolder/stages/templater/helpers.ts +++ b/plugins/scaffolder-backend/src/scaffolder/stages/templater/helpers.ts @@ -77,20 +77,21 @@ 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: '/tmp', + 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,