<#3860 Bundle a buildkit instance within sandbox t...
# flyte-github
a
#3860 Bundle a buildkit instance within sandbox to facilitate local image spec builds Pull request opened by jeevb Related: flyteorg/flytectl#413 Tested by running the following command:
Copy code
envd context create --name flyte-sandbox --builder tcp --builder-address localhost:30003 --use
and executing (
pyflyte run --remote wf.py my_wf
) the following workflow:
Copy code
from flytekit import task, workflow, ImageSpec

image = ImageSpec(
    name="imagespec",
    registry="localhost:30000",
    packages=["smart-open[gcs]"],
    apt_packages=["git"],
)


@task(container_image=image)
def my_task() -> str:
    return "hello, world!"


@workflow
def my_wf() -> str:
    return my_task()
flyteorg/flyte GitHub Actions: build-and-push-sandbox-bundled-image 11 other checks have passed 11/12 successful checks