Skip to content

Commit

Permalink
Replace image.copy_local with image.add_local (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
freider authored Dec 17, 2024
1 parent 8bfc92d commit 9f19ee5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 06_gpu_and_ml/llm-serving/openai_compatible/load_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
modal.Image.debian_slim(python_version="3.11")
.pip_install("locust~=2.29.1", "openai~=1.37.1")
.env({"MODAL_WORKSPACE": workspace})
.copy_local_file(
.add_local_file(
Path(__file__).parent / "locustfile.py",
remote_path="/root/locustfile.py",
)
Expand Down
4 changes: 2 additions & 2 deletions 07_web_endpoints/fasthtml-checkboxes/cbx_load_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
modal.Image.debian_slim(python_version="3.12")
.pip_install("locust~=2.29.1", "beautifulsoup4~=4.12.3", "lxml~=5.3.0")
.env({"MODAL_WORKSPACE": workspace, "MODAL_ENVIRONMENT": environment})
.copy_local_file(
.add_local_file(
Path(__file__).parent / "cbx_locustfile.py",
remote_path="/root/locustfile.py",
)
.copy_local_file(
.add_local_file(
Path(__file__).parent / "constants.py",
remote_path="/root/constants.py",
)
Expand Down
2 changes: 1 addition & 1 deletion 10_integrations/tailscale/modal_tailscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.apt_install("curl")
.run_commands("curl -fsSL https://tailscale.com/install.sh | sh")
.pip_install("requests==2.32.3", "PySocks==1.7.1")
.copy_local_file("./entrypoint.sh", "/root/entrypoint.sh")
.add_local_file("./entrypoint.sh", "/root/entrypoint.sh", copy=True)
.dockerfile_commands(
"RUN chmod a+x /root/entrypoint.sh",
'ENTRYPOINT ["/root/entrypoint.sh"]',
Expand Down

0 comments on commit 9f19ee5

Please sign in to comment.