Skip to content

Commit 8f741d6

Browse files
committed
updated examples image
1 parent 5382d27 commit 8f741d6

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

examples/advanced_create_instance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
if price_per_hour * DURATION < balance.amount:
5353
# Deploy a new 8V instance
5454
instance = datacrunch.instances.create(instance_type=INSTANCE_TYPE_8V,
55-
image='ubuntu-24.04-cuda-12.8-open-docker',
55+
image='ubuntu-22.04-cuda-12.0-docker',
5656
ssh_key_ids=ssh_keys_ids,
5757
hostname='example',
5858
description='large instance',
@@ -63,7 +63,7 @@
6363
else:
6464
# Deploy a new 4V instance
6565
instance = datacrunch.instances.create(instance_type=INSTANCE_TYPE_4V,
66-
image='ubuntu-24.04-cuda-12.8-open-docker',
66+
image='ubuntu-22.04-cuda-12.0-docker',
6767
ssh_key_ids=ssh_keys_ids,
6868
hostname='example',
6969
description='medium instance')

examples/instance_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Create a new 1V100.6V instance
1919
instance = datacrunch.instances.create(instance_type='1V100.6V',
20-
image='ubuntu-24.04-cuda-12.8-open-docker',
20+
image='ubuntu-22.04-cuda-12.0-docker',
2121
ssh_key_ids=ssh_keys_ids,
2222
hostname='example',
2323
description='example instance')

examples/instances_and_volumes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# Create instance with extra attached volumes
2323
instance_with_extra_volumes = datacrunch.instances.create(instance_type='1V100.6V',
24-
image='ubuntu-24.04-cuda-12.8-open-docker',
24+
image='ubuntu-22.04-cuda-12.0-docker',
2525
ssh_key_ids=ssh_keys,
2626
hostname='example',
2727
description='example instance',
@@ -34,7 +34,7 @@
3434

3535
# Create instance with custom OS volume size and name
3636
instance_with_custom_os_volume = datacrunch.instances.create(instance_type='1V100.6V',
37-
image='ubuntu-24.04-cuda-12.8-open-docker',
37+
image='ubuntu-22.04-cuda-12.0-docker',
3838
ssh_key_ids=ssh_keys,
3939
hostname='example',
4040
description='example instance',
@@ -59,7 +59,6 @@
5959
action=datacrunch.constants.instance_actions.DELETE,
6060
volume_ids=[])
6161

62-
6362
# Delete instance and one of it's volumes (will delete one volume, detach the rest)
6463
datacrunch.instances.action(instance_id=EXAMPLE_INSTANCE_ID,
6564
action=datacrunch.constants.instance_actions.DELETE,

0 commit comments

Comments
 (0)