sparse-window-1536
05/06/2022, 8:01 PMcontainers with unready status: [ash8dlh4m294mnd9psbs-f62iya2y-0]|Back-off pulling image "flyte-example:1.0"
when trying to execute a workflow, even though I have the flyte-example:1.0 image on my local repo. But, at the same time, it doesn't seem like I should have to build the image inside the sandbox container, right? The container from flytectl demo start
doesn't even mount the working directory into /root
.
I can't find anything in the documentation that says how to do this...broad-monitor-993
05/06/2022, 8:04 PMflytectl demo start --source .
your working directory will be mounted onto the demo cluster container, and you can use flytectl demo exec docker build /root --tag …
to build the custom container from within the demo containerbroad-monitor-993
05/06/2022, 8:06 PMsparse-window-1536
05/06/2022, 8:06 PMflytectl sandbox start
does?sparse-window-1536
05/06/2022, 8:08 PMbroad-monitor-993
05/06/2022, 8:09 PMflytectl demo start
?echoing-queen-96254
05/06/2022, 8:10 PMsparse-window-1536
05/06/2022, 8:11 PMbroad-monitor-993
05/06/2022, 8:12 PMI honestly thought this new version of the sandbox used the local repository directly, without the requirement of building the image inside the container. I must have read something wrongso I’m fuzzy on the details (maybe someone more knowledgeable can answer) but from what I understand
flytectl demo
starts a cluster using a single binary for many of the flyteadmin services but still needs to use the docker-in-docker system we used for flytectl sandbox
to pull images for the postgres service (and I think 2 others), but the result is that it spins up a lot more quickly than old sandboxthankful-minister-83577
sparse-window-1536
05/06/2022, 8:14 PMsparse-window-1536
05/06/2022, 8:19 PMsparse-window-1536
05/06/2022, 8:20 PMexec -- docker build
that I could find was buried inside Flytesnacks contribution guide: https://docs.flyte.org/projects/cookbook/en/latest/contribute.html#contribute-to-examplesthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
icy-agent-73298
05/11/2022, 6:52 AMflytectl demo start --source ~/flytesnacks/cookbook/
flytectl demo exec -- make -C core/ serialize
flytectl register file ~/flytesnacks/cookbook/core/_pb_output/* -d development -p flytesnacks --version v1
flytectl get launchplan -p flytesnacks -d development core.flyte_basics.lp.go_greet --latest --execFile execFile.yaml
flytectl create execution -p flytesnacks -d development --execFile execFile.yaml
thankful-minister-83577