Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc for pushing image to local registry in the sandbox #1001

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions cookbook/core/image_spec/image_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,13 @@ def wf():
#
# pyflyte build --remote image_spec.py wf
#

# %%
# To push the image to the local registry in the sandbox, the configuration of buildkitd needs to be changed. you can follow the steps below:
#
# 1. Stop existing buildkitd if it is running. ``docker stop buildkitd-demo``
# 2. Get the local registry IP address. ``docker inspect flyte-sandbox | grep IPAddress``
# 3. Start buildkitd with the new configuration. ``envd bootstrap --registry 172.17.0.2:30000 --use-http``
# 4. Replace the ``registry`` field in the ``ImageSpec`` with the local registry IP address.
# 5. Run ``pyflyte build --remote image_spec.py wf`` to build the image and push it to the local registry.
#