From e2e68b0f7d0808a04568def46adc89a50897de45 Mon Sep 17 00:00:00 2001 From: Alexis Guerville Date: Thu, 11 Jun 2026 18:40:11 +0200 Subject: [PATCH] Use koyeb/sandbox:slim image --- examples/01_create_sandbox.py | 2 +- examples/01_create_sandbox_async.py | 2 +- examples/02_create_sandbox_with_timing.py | 2 +- examples/02_create_sandbox_with_timing_async.py | 2 +- examples/03_basic_commands.py | 2 +- examples/03_basic_commands_async.py | 2 +- examples/04_streaming_output.py | 2 +- examples/04_streaming_output_async.py | 2 +- examples/05_environment_variables.py | 2 +- examples/05_environment_variables_async.py | 2 +- examples/06_working_directory.py | 2 +- examples/06_working_directory_async.py | 2 +- examples/07_file_operations.py | 2 +- examples/07_file_operations_async.py | 2 +- examples/08_directory_operations.py | 2 +- examples/08_directory_operations_async.py | 2 +- examples/09_binary_files.py | 2 +- examples/09_binary_files_async.py | 2 +- examples/10_batch_operations.py | 2 +- examples/10_batch_operations_async.py | 2 +- examples/11_upload_download.py | 2 +- examples/11_upload_download_async.py | 2 +- examples/12_file_manipulation.py | 2 +- examples/12_file_manipulation_async.py | 2 +- examples/13_background_processes.py | 2 +- examples/13_background_processes_async.py | 2 +- examples/14_expose_port.py | 2 +- examples/14_expose_port_async.py | 2 +- examples/15_get_sandbox.py | 2 +- examples/15_get_sandbox_async.py | 2 +- examples/16_create_sandbox_with_auto_delete_simple.py | 2 +- examples/17_create_sandbox_with_auto_delete.py | 4 ++-- examples/18_create_sandbox_with_existing_app.py | 2 +- examples/20_config_files.py | 2 +- examples/20_config_files_async.py | 2 +- examples/README.md | 2 +- 36 files changed, 37 insertions(+), 37 deletions(-) diff --git a/examples/01_create_sandbox.py b/examples/01_create_sandbox.py index edf3e288..7165ffc8 100644 --- a/examples/01_create_sandbox.py +++ b/examples/01_create_sandbox.py @@ -19,7 +19,7 @@ def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"example-sandbox-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/01_create_sandbox_async.py b/examples/01_create_sandbox_async.py index 3ba22972..06138dbc 100644 --- a/examples/01_create_sandbox_async.py +++ b/examples/01_create_sandbox_async.py @@ -21,7 +21,7 @@ async def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"example-sandbox-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/02_create_sandbox_with_timing.py b/examples/02_create_sandbox_with_timing.py index 482c4c2f..4c597984 100644 --- a/examples/02_create_sandbox_with_timing.py +++ b/examples/02_create_sandbox_with_timing.py @@ -84,7 +84,7 @@ def main(run_long_tests=False): print(" → Creating sandbox...") create_start = time.time() sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"example-sandbox-timed-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/02_create_sandbox_with_timing_async.py b/examples/02_create_sandbox_with_timing_async.py index 32342f1c..a2901d81 100644 --- a/examples/02_create_sandbox_with_timing_async.py +++ b/examples/02_create_sandbox_with_timing_async.py @@ -89,7 +89,7 @@ async def main(run_long_tests=False): print(" → Creating sandbox...") create_start = time.time() sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"example-sandbox-timed-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/03_basic_commands.py b/examples/03_basic_commands.py index de296604..2e8103b5 100644 --- a/examples/03_basic_commands.py +++ b/examples/03_basic_commands.py @@ -19,7 +19,7 @@ def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"basic-commands-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/03_basic_commands_async.py b/examples/03_basic_commands_async.py index adb45214..b54da414 100644 --- a/examples/03_basic_commands_async.py +++ b/examples/03_basic_commands_async.py @@ -20,7 +20,7 @@ async def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"basic-commands-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/04_streaming_output.py b/examples/04_streaming_output.py index 528e5438..c89ef938 100644 --- a/examples/04_streaming_output.py +++ b/examples/04_streaming_output.py @@ -20,7 +20,7 @@ def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"streaming-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/04_streaming_output_async.py b/examples/04_streaming_output_async.py index 0c366df3..f3e24f29 100644 --- a/examples/04_streaming_output_async.py +++ b/examples/04_streaming_output_async.py @@ -22,7 +22,7 @@ async def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"streaming-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/05_environment_variables.py b/examples/05_environment_variables.py index 5ae711f4..6e88a09e 100644 --- a/examples/05_environment_variables.py +++ b/examples/05_environment_variables.py @@ -35,7 +35,7 @@ def main(): # Create sandbox with env vars referencing the secret and using interpolation sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"env-vars-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/05_environment_variables_async.py b/examples/05_environment_variables_async.py index 42cd146f..8d4df5dc 100644 --- a/examples/05_environment_variables_async.py +++ b/examples/05_environment_variables_async.py @@ -36,7 +36,7 @@ async def main(): # Create sandbox with env vars referencing the secret and using interpolation sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"env-vars-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/06_working_directory.py b/examples/06_working_directory.py index 19026358..26c7ca1c 100644 --- a/examples/06_working_directory.py +++ b/examples/06_working_directory.py @@ -20,7 +20,7 @@ def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"working-dir-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/06_working_directory_async.py b/examples/06_working_directory_async.py index b69e208d..73089fa6 100644 --- a/examples/06_working_directory_async.py +++ b/examples/06_working_directory_async.py @@ -22,7 +22,7 @@ async def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"working-dir-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/07_file_operations.py b/examples/07_file_operations.py index 4a2821b3..e38ed8e9 100644 --- a/examples/07_file_operations.py +++ b/examples/07_file_operations.py @@ -20,7 +20,7 @@ def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"file-ops-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/07_file_operations_async.py b/examples/07_file_operations_async.py index 85efac88..233a9dad 100644 --- a/examples/07_file_operations_async.py +++ b/examples/07_file_operations_async.py @@ -22,7 +22,7 @@ async def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"file-ops-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/08_directory_operations.py b/examples/08_directory_operations.py index bf0da934..72411443 100644 --- a/examples/08_directory_operations.py +++ b/examples/08_directory_operations.py @@ -20,7 +20,7 @@ def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"directory-ops-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/08_directory_operations_async.py b/examples/08_directory_operations_async.py index 629ed1f5..aa65b4cc 100644 --- a/examples/08_directory_operations_async.py +++ b/examples/08_directory_operations_async.py @@ -22,7 +22,7 @@ async def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"directory-ops-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/09_binary_files.py b/examples/09_binary_files.py index 773e60f1..2b4f1fa7 100644 --- a/examples/09_binary_files.py +++ b/examples/09_binary_files.py @@ -20,7 +20,7 @@ def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"binary-files-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/09_binary_files_async.py b/examples/09_binary_files_async.py index d7c3b96a..714a442b 100644 --- a/examples/09_binary_files_async.py +++ b/examples/09_binary_files_async.py @@ -22,7 +22,7 @@ async def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"binary-files-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/10_batch_operations.py b/examples/10_batch_operations.py index 81e7eeee..bc655b8e 100644 --- a/examples/10_batch_operations.py +++ b/examples/10_batch_operations.py @@ -20,7 +20,7 @@ def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"batch-ops-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/10_batch_operations_async.py b/examples/10_batch_operations_async.py index b3c94ba8..da61c9b6 100644 --- a/examples/10_batch_operations_async.py +++ b/examples/10_batch_operations_async.py @@ -22,7 +22,7 @@ async def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"batch-ops-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/11_upload_download.py b/examples/11_upload_download.py index df51a9fb..3d65fd34 100644 --- a/examples/11_upload_download.py +++ b/examples/11_upload_download.py @@ -21,7 +21,7 @@ def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"upload-download-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/11_upload_download_async.py b/examples/11_upload_download_async.py index dbe8501e..cd215143 100644 --- a/examples/11_upload_download_async.py +++ b/examples/11_upload_download_async.py @@ -23,7 +23,7 @@ async def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"upload-download-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/12_file_manipulation.py b/examples/12_file_manipulation.py index 221f91f4..7a98ee01 100644 --- a/examples/12_file_manipulation.py +++ b/examples/12_file_manipulation.py @@ -20,7 +20,7 @@ def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"file-manip-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/12_file_manipulation_async.py b/examples/12_file_manipulation_async.py index 3baad34f..f05bb412 100644 --- a/examples/12_file_manipulation_async.py +++ b/examples/12_file_manipulation_async.py @@ -22,7 +22,7 @@ async def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"file-manip-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/13_background_processes.py b/examples/13_background_processes.py index 59299fb2..3375df25 100755 --- a/examples/13_background_processes.py +++ b/examples/13_background_processes.py @@ -21,7 +21,7 @@ def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"background-processes-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/13_background_processes_async.py b/examples/13_background_processes_async.py index 44b2550b..cdf10224 100755 --- a/examples/13_background_processes_async.py +++ b/examples/13_background_processes_async.py @@ -22,7 +22,7 @@ async def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"background-processes-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/14_expose_port.py b/examples/14_expose_port.py index 4c9cf6b6..15c6b76e 100755 --- a/examples/14_expose_port.py +++ b/examples/14_expose_port.py @@ -24,7 +24,7 @@ def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"expose-port-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/14_expose_port_async.py b/examples/14_expose_port_async.py index 8612a573..c23b865c 100755 --- a/examples/14_expose_port_async.py +++ b/examples/14_expose_port_async.py @@ -24,7 +24,7 @@ async def main(): suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) try: sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"expose-port-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/15_get_sandbox.py b/examples/15_get_sandbox.py index 952cdffd..8cc9e4b0 100644 --- a/examples/15_get_sandbox.py +++ b/examples/15_get_sandbox.py @@ -24,7 +24,7 @@ def main(): # Step 1: Create a new sandbox print("Creating a new sandbox...") original_sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name="example-sandbox", wait_ready=True, api_token=api_token, diff --git a/examples/15_get_sandbox_async.py b/examples/15_get_sandbox_async.py index ba5bfdc0..f4fbfd97 100644 --- a/examples/15_get_sandbox_async.py +++ b/examples/15_get_sandbox_async.py @@ -26,7 +26,7 @@ async def main(): # Step 1: Create a new sandbox print("Creating a new sandbox...") original_sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name="example-sandbox", wait_ready=True, api_token=api_token, diff --git a/examples/16_create_sandbox_with_auto_delete_simple.py b/examples/16_create_sandbox_with_auto_delete_simple.py index de9d35be..b9caa394 100644 --- a/examples/16_create_sandbox_with_auto_delete_simple.py +++ b/examples/16_create_sandbox_with_auto_delete_simple.py @@ -48,7 +48,7 @@ def main(): create_start = time.time() sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"auto-delete-test-simple-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/17_create_sandbox_with_auto_delete.py b/examples/17_create_sandbox_with_auto_delete.py index 0fb7d8ca..82440117 100644 --- a/examples/17_create_sandbox_with_auto_delete.py +++ b/examples/17_create_sandbox_with_auto_delete.py @@ -137,7 +137,7 @@ def main(): create_start = time.time() sandbox1 = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name="auto-delete-test-1", wait_ready=True, api_token=api_token, @@ -179,7 +179,7 @@ def main(): create_start = time.time() sandbox2 = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"auto-delete-test-2-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/18_create_sandbox_with_existing_app.py b/examples/18_create_sandbox_with_existing_app.py index c9bffffd..2bac3b32 100644 --- a/examples/18_create_sandbox_with_existing_app.py +++ b/examples/18_create_sandbox_with_existing_app.py @@ -50,7 +50,7 @@ def main(): print(f" Creating sandbox in app: {app_id}") sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"sandbox-in-existing-app-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/20_config_files.py b/examples/20_config_files.py index 81c58419..f4a7d710 100644 --- a/examples/20_config_files.py +++ b/examples/20_config_files.py @@ -43,7 +43,7 @@ def main(): # Create sandbox with config files referencing the secret and using interpolation sandbox = Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"config-files-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/20_config_files_async.py b/examples/20_config_files_async.py index 67da92d9..f64f1470 100644 --- a/examples/20_config_files_async.py +++ b/examples/20_config_files_async.py @@ -44,7 +44,7 @@ async def main(): # Create sandbox with config files referencing the secret and using interpolation sandbox = await AsyncSandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name=f"config-files-{suffix}", wait_ready=True, api_token=api_token, diff --git a/examples/README.md b/examples/README.md index 9dddf90a..c10b4eb7 100644 --- a/examples/README.md +++ b/examples/README.md @@ -37,7 +37,7 @@ from koyeb import Sandbox # Create a sandbox sandbox = await Sandbox.create( - image="koyeb/sandbox", + image="koyeb/sandbox:slim", name="my-sandbox", wait_ready=True, api_token=api_token,