From bdb6a5e008e9fb1c3deb2f2f1fd5ea774563431b Mon Sep 17 00:00:00 2001 From: Chaskiel Grundman Date: Sun, 2 Aug 2015 22:18:16 -0400 Subject: [PATCH] Update distDocker to use entrypoint interface --- vmms/distDocker.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/vmms/distDocker.py b/vmms/distDocker.py index e0090750..8db2306d 100644 --- a/vmms/distDocker.py +++ b/vmms/distDocker.py @@ -205,19 +205,13 @@ def runJob(self, vm, runTimeout, maxOutputFileSize): instanceName = self.instanceName(vm.id, vm.image) volumePath = self.getVolumePath(instanceName) - autodriverCmd = 'autodriver -u %d -f %d -t %d -o %d autolab &> output/feedback' % \ + autodriverArgs = '-u %d -f %d -t %d -o %d' % \ (config.Config.VM_ULIMIT_USER_PROC, config.Config.VM_ULIMIT_FILE_SIZE, runTimeout, config.Config.MAX_OUTPUT_FILE_SIZE) - # IMPORTANT: The single and double quotes are important, since we - # are switching to the autolab user and then running - # bash commands. - setupCmd = 'cp -r mount/* autolab/; su autolab -c "%s"; \ - cp output/feedback mount/feedback' % autodriverCmd - - args = "(docker run --name %s -v %s:/home/mount %s sh -c '%s')" % \ - (instanceName, volumePath, vm.image, setupCmd) + args = "(docker run --name %s -v %s:/home/mount %s %s)" % \ + (instanceName, volumePath, vm.image, autodriverArgs) self.log.debug('Running job: %s' % args)