ancient-account-54527
06/19/2024, 7:35 AMexport FLYTECTL_CONFIG=~/.flyte/config-sandbox.yaml
Problem is that this config file was not previously created and does not exist. As a result Step 4 of the same guide fails flytectl create project [..]
raises a seg fault.
Running flytectl config init
creates such a config file for me (no idea if it is the one expected) but the config file is in ~/.flyte/config.yaml
Setting FLYTECTL_CONFIG
to this new file seemingly solves this issue and allow me to finish this tutorial.
Am I misunderstanding anything or should I open a GitHub issue?
Thanks for your help :)average-finland-92144
06/19/2024, 1:59 PMconfig-sandbox
should be created when you run flytectl demo start
Did you find issues running that step?ancient-account-54527
06/19/2024, 2:09 PMconfig-sandbox
(flyte-example) ā my_project git:(main) ā export FLYTECTL_CONFIG=~/.flyte/config-sandbox.yaml
(flyte-example) ā my_project git:(main) ā sudo systemctl start docker
(flyte-example) ā my_project git:(main) ā sudo flytectl demo start
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
š§āš Bootstrapping a brand new Flyte cluster... šØ š§
š Going to use Flyte v1.12.0 release with image <http://cr.flyte.org/flyteorg/flyte-sandbox-bundled:sha-bd3ed0d2684bddbc8fad1c26d4bc39a86e91077f|cr.flyte.org/flyteorg/flyte-sandbox-bundled:sha-bd3ed0d2684bddbc8fad1c26d4bc39a86e91077f>
š§āš Starting container... šØ š§
ā³ Waiting for cluster to come up... ā³
š§āš Activated context "flyte-sandbox"!
+-----------------------------------------------------+---------------+-----------+
| SERVICE | STATUS | NAMESPACE |
+-----------------------------------------------------+---------------+-----------+
| flyte-sandbox-docker-registry-8648675c45-t4qqv | Running | flyte |
+-----------------------------------------------------+---------------+-----------+
| flyte-sandbox-kubernetes-dashboard-6757db879c-m4xhn | Running | flyte |
+-----------------------------------------------------+---------------+-----------+
| flyte-sandbox-postgresql-0 | Running | flyte |
+-----------------------------------------------------+---------------+-----------+
| flyte-sandbox-minio-85dc5446b6-rwzkk | Running | flyte |
+-----------------------------------------------------+---------------+-----------+
| flyte-sandbox-buildkit-675bff7bd9-nnzrq | Running | flyte |
+-----------------------------------------------------+---------------+-----------+
| flyte-sandbox-proxy-8f4f7fd9b-dspqq | Running | flyte |
+-----------------------------------------------------+---------------+-----------+
| flyteagent-798cc9846-r76gr | Running | flyte |
+-----------------------------------------------------+---------------+-----------+
| flyte-sandbox-64f5656c8f-2r8np | Running | flyte |
+-----------------------------------------------------+---------------+-----------+
šØāš» Flyte is ready! Flyte UI is available at <http://localhost:30080/console> š š š
āļø Run the following command to export demo environment variables for accessing flytectl
export FLYTECTL_CONFIG=/root/.flyte/config-sandbox.yaml
š Flyte sandbox ships with a Docker registry. Tag and push custom workflow images to localhost:30000
š The Minio API is hosted on localhost:30002. Use <http://localhost:30080/minio/login> for Minio console, default credentials - username: minio, password: miniostorage
(flyte-example) ā my_project git:(main) ā ls ~/.flyte/config-sandbox.yaml
ls: cannot access '/home/guillaume/.flyte/config-sandbox.yaml': No such file or directory
average-finland-92144
06/19/2024, 2:11 PM/root/.flyte/config-sandbox.yaml
?ancient-account-54527
06/19/2024, 2:14 PMflytectl demo start
with sudo
. As otherwise, I had permission denied.ancient-account-54527
06/19/2024, 2:15 PMdocker_build.sh
script but it does not in my case.
(base) ā test $ pyflyte init my_project
Visit the my_project directory and follow the next steps in the Getting started guide (<https://docs.flyte.org/en/latest/getting_started_with_workflow_development/index.html>) to proceed.
(base) ā test $ cd my_project
(base) ā my_project $ ls
average-finland-92144
06/19/2024, 3:00 PM/root
Regarding the docker build file, not sure if it's a permissions problem toobrief-window-55364
06/19/2024, 3:15 PMflytectl demo start
without sudo?ancient-account-54527
06/19/2024, 3:42 PMancient-account-54527
06/20/2024, 7:50 AMpyflyte init my_project
does not generate a docker_build.sh
. Any idea what may cause this?average-finland-92144
06/20/2024, 12:00 PMancient-account-54527
06/20/2024, 12:06 PM