Skip to content

Commit

Permalink
tools/build-rpms: increase rpm builder instance disk size
Browse files Browse the repository at this point in the history
The instance created for rpm builds is running out of space on the
default 10G disk, let's double it.
  • Loading branch information
croissanne committed Sep 11, 2024
1 parent 3df26ed commit 72ed7db
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/build-rpms.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,22 @@ def create_ec2_instances(cleanup_actions, args, keypair):
}
]

img = ec2.describe_images(ImageIds=[arch_info[a]["ImageId"]])
instance = ec2.create_instances(
ImageId=arch_info[a]["ImageId"],
MinCount=1,
MaxCount=1,
InstanceType=arch_info[a]["InstanceType"],
BlockDeviceMappings=[
{
"DeviceName": img['Images'][0]['RootDeviceName'],
"Ebs": {
"VolumeSize": 20,
"DeleteOnTermination": True,
"VolumeType": "gp2",
},
},
],
KeyName=keypair,
TagSpecifications=tags
)
Expand Down

0 comments on commit 72ed7db

Please sign in to comment.