Minor fixes

This commit is contained in:
Lucas Verney 2020-12-26 12:15:30 +01:00
parent 1c063b9d09
commit 4331a51e28
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ if __name__ == '__main__':
# Get image id # Get image id
result = client.get( result = client.get(
'/cloud/project/' + config.ovh_public_cloud_project + '/image', '/cloud/project/' + config.ovh_public_cloud_project + '/image',
flavorType='s1-2', flavorType=config.ovh_public_cloud_flavor,
osType='linux', osType='linux',
region=config.ovh_public_cloud_region, region=config.ovh_public_cloud_region,
) )
@ -52,7 +52,7 @@ if __name__ == '__main__':
flavor_id = next( flavor_id = next(
x['id'] x['id']
for x in result for x in result
if x['name'] == 's1-2' if x['name'] == config.ovh_public_cloud_flavor
) )
# Create instance # Create instance

2
run.sh
View File

@ -23,7 +23,7 @@ if [ "$1" == "" ] || [ $# -gt 1 ]; then
# Run the build on the OVH instance # Run the build on the OVH instance
scp -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" ./build_android.sh ubuntu@${IP_ADDRESS}:~ scp -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" ./build_android.sh ubuntu@${IP_ADDRESS}:~
# Build /e/ (or edit the BUILD_FLAVOR environment variable) # Build /e/ (or edit the BUILD_FLAVOR environment variable)
ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" -f ubuntu@${IP_ADDRESS} 'screen -S build -dm bash BUILD_FLAVOR=e ./build_android.sh' ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" -f ubuntu@${IP_ADDRESS} 'BUILD_FLAVOR=e screen -S build -dm bash ./build_android.sh'
else else
IP_ADDRESS="$1" IP_ADDRESS="$1"
fi fi