Skip to content

Commit bdb6a5e

Browse files
committed
Update distDocker to use entrypoint interface
1 parent 4552ba4 commit bdb6a5e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

vmms/distDocker.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -205,19 +205,13 @@ def runJob(self, vm, runTimeout, maxOutputFileSize):
205205
instanceName = self.instanceName(vm.id, vm.image)
206206
volumePath = self.getVolumePath(instanceName)
207207

208-
autodriverCmd = 'autodriver -u %d -f %d -t %d -o %d autolab &> output/feedback' % \
208+
autodriverArgs = '-u %d -f %d -t %d -o %d' % \
209209
(config.Config.VM_ULIMIT_USER_PROC,
210210
config.Config.VM_ULIMIT_FILE_SIZE,
211211
runTimeout, config.Config.MAX_OUTPUT_FILE_SIZE)
212212

213-
# IMPORTANT: The single and double quotes are important, since we
214-
# are switching to the autolab user and then running
215-
# bash commands.
216-
setupCmd = 'cp -r mount/* autolab/; su autolab -c "%s"; \
217-
cp output/feedback mount/feedback' % autodriverCmd
218-
219-
args = "(docker run --name %s -v %s:/home/mount %s sh -c '%s')" % \
220-
(instanceName, volumePath, vm.image, setupCmd)
213+
args = "(docker run --name %s -v %s:/home/mount %s %s)" % \
214+
(instanceName, volumePath, vm.image, autodriverArgs)
221215

222216
self.log.debug('Running job: %s' % args)
223217

0 commit comments

Comments
 (0)