parent
7d356c451b
commit
f9469a84b3
2 changed files with 3 additions and 2 deletions
|
@ -75,6 +75,7 @@ class BuilderExecutor(object):
|
|||
coreos_channel=coreos_channel,
|
||||
worker_tag=self.executor_config['WORKER_TAG'],
|
||||
logentries_token=self.executor_config.get('LOGENTRIES_TOKEN', None),
|
||||
volume_size=self.executor_config.get('VOLUME_SIZE', '42G'),
|
||||
)
|
||||
|
||||
|
||||
|
@ -119,7 +120,7 @@ class EC2Executor(BuilderExecutor):
|
|||
ec2_conn = self._get_conn()
|
||||
|
||||
ssd_root_ebs = boto.ec2.blockdevicemapping.BlockDeviceType(
|
||||
size=48,
|
||||
size=int(self.executor_config.get('BLOCK_DEVICE_SIZE', 48)),
|
||||
volume_type='gp2',
|
||||
delete_on_termination=True,
|
||||
)
|
||||
|
|
|
@ -61,7 +61,7 @@ coreos:
|
|||
ConditionPathExists=!/var/lib/docker.btrfs
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/truncate --size=42G /var/lib/docker.btrfs
|
||||
ExecStart=/usr/bin/truncate --size={{ volume_size }} /var/lib/docker.btrfs
|
||||
ExecStart=/usr/sbin/mkfs.btrfs /var/lib/docker.btrfs
|
||||
- name: var-lib-docker.mount
|
||||
enable: true
|
||||
|
|
Reference in a new issue