flavienbwk
10/09/2020, 3:02 PMnicholas
prefect server start
acts as a wrapper for the pre-built docker-compose.yaml
that orchestrates all the applications/nodes required to run the Prefect Server application. You can find that file here, and some configuration options here.
Is there a reason you'd need to set up your own docker-compose.yaml
to get started? I'd normally recommend against this since it adds a lot of friction for components that may be difficult to understand without a broader knowledge of the Prefect stack.flavienbwk
10/09/2020, 3:11 PMdocker-compose up
with images coming from my own Docker registry.nicholas
prefect server start
, you can subsequently pass the --skip-pull
arg to avoid having to re-pull imagesflavienbwk
10/09/2020, 3:15 PMprefect server start
with the skip-pull
option.
But it means I have manually to docker load my images in each of my offline computers ! I wanted to benefit from my registry to not force my users to manually pull the image from my registry and then ask them to re-tag it with the "source tag".prefect server start
command that manages the containers to be launched.Chris White
flavienbwk
10/09/2020, 4:46 PMdocker-compose.yml
file and then pip install ./prefect
it ?
Will the containers launch with my docker images if I do that ?Chris White
prefect
, and use docker-compose up
directly with the appropriate environment variable settingsflavienbwk
10/09/2020, 4:48 PMprefect server start
do in particular ? Just changing the env values ?Chris White
docker-compose up
is run, and responds to any passed user flags by altering the docker compose file. All logic for that command is here: https://github.com/PrefectHQ/prefect/blob/master/src/prefect/cli/server.pyflavienbwk
10/09/2020, 4:50 PMChris White
flavienbwk
10/09/2020, 5:28 PMrequests.exceptions.HTTPError: 400 Client Error: Bad Request for url: <http://localhost:4200/graphql>
I am able to access this URL from my computer.Chris White
prefect backend server # from the terminal
# the following within a python session
>> from prefect import Client; c = Client()
>> client.create_tenant(name="default")
flavienbwk
10/09/2020, 5:31 PMprefect server create-tenant --name default --slug default
Chris White
flavienbwk
10/09/2020, 5:32 PM.env
file containing the default valuesChris White
PREFECT_SERVER_DB_CMD="prefect-server database upgrade -y"
in your environment prior to running `docker-compose up`; did you set that variable in your .env
file?flavienbwk
10/09/2020, 5:35 PMChris White
flavienbwk
10/09/2020, 5:36 PMChris White