Mount tmpfs on ansible tmp dir

We explicitly set the ansible local_tmp dir to {work}/tmp. Since
ansible writes many small files in there we should mount a tmpfs there
to save iops.

Change-Id: Ia17d9dac8e7f5d8fb8e294c37a7b0a6621ee7c7c
This commit is contained in:
Tobias Henkel 2019-06-04 14:09:15 +02:00
parent bbff35751b
commit 74c1ba73ba
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
1 changed files with 1 additions and 0 deletions

View File

@ -199,6 +199,7 @@ class BubblewrapDriver(Driver, WrapperInterface):
'--ro-bind', '/etc/localtime', '/etc/localtime',
'--ro-bind', '{ssh_auth_sock}', '{ssh_auth_sock}',
'--bind', '{work_dir}', '{work_dir}',
'--tmpfs', '{work_dir}/tmp',
'--proc', '/proc',
'--dev', '/dev',
'--chdir', '{work_dir}',