Skip to content

Commit b6c4451

Browse files
author
Gabriel Monroy
committed
change run to use build.image instead of a slug mount
1 parent c1f4dc5 commit b6c4451

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

api/models.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,10 +549,7 @@ def run(self, command):
549549
release = self.release_set.order_by('-created')[0]
550550
# prepare ssh command
551551
version = release.version
552-
docker_args = ' '.join(
553-
['-a', 'stdout', '-a', 'stderr', '-rm',
554-
'-v', '/opt/deis/runtime/slugs/{app_id}-v{version}:/app'.format(**locals()),
555-
'deis/slugrunner'])
552+
docker_args = ' '.join(['-a', 'stdout', '-a', 'stderr', '-rm', release.build.image])
556553
env_args = ' '.join(["-e '{k}={v}'".format(**locals())
557554
for k, v in release.config.values.items()])
558555
log_event(self, "deis run '{}'".format(command))

0 commit comments

Comments
 (0)