Miguel Angel
08/03/2021, 4:45 PMKyle McChesney
08/03/2021, 4:47 PMKevin Kho
DockerRun
and the Docker agent if you want to spin a Flow using a container.Miguel Angel
08/03/2021, 4:58 PMMiguel Angel
08/03/2021, 5:31 PM# debug mode
debug = true
# base configuration directory (typically you won't change this!)
home_dir = "~/.prefect"
backend = "server"
[server]
host = "<http://172.17.0.1>"
port = "4200"
host_port = "4200"
endpoint = "${server.host}:${server.port}"
[registry]
endpoint = "172.17.0.1:5000"
But the connection is refused.Kevin Kho
flow.reigster()
and you get the error?Miguel Angel
08/03/2021, 7:12 PMKevin Kho
Miguel Angel
08/03/2021, 7:37 PMprefect register -m "my-package.flows" --project my-project
Kyle McChesney
08/03/2021, 7:39 PMmy-package.flows
is not a valid python module as far as I know. Does it allow the dash?Kevin Kho
Kyle McChesney
08/03/2021, 8:01 PMenv PREFECT__SERVER__HOST=localhost:##### prefect register --project "test" -m "myproject.flows"
That would get your flow module registered onto the server instance running on your local docker. Just replace the #### with whatever port you are exposing (pretty sure its the graphql endpoint you want)Kyle McChesney
08/03/2021, 8:02 PMKyle McChesney
08/03/2021, 8:03 PMprefect register
and prefect run
from that containerKyle McChesney
08/03/2021, 8:06 PMdev:
image: prefecthq/prefect:0.15.3
tty: true
networks:
prefect-server
And then exec into this container, you should at least have the networkMiguel Angel
08/04/2021, 11:01 AM