Matthew Blau
12/29/2020, 1:23 PMAdam Roderick
12/29/2020, 1:27 PMMatthew Blau
12/29/2020, 1:30 PMAdam Roderick
12/29/2020, 2:04 PMMatthew Blau
12/29/2020, 2:05 PMAdam Roderick
12/29/2020, 2:06 PMMatthew Blau
12/29/2020, 2:07 PMmblau@mblau-VirtualBox:~/docker_prefect$ docker -it run prefecthq/prefect:latest
tini (tini version 0.18.0)
Usage: tini [OPTIONS] PROGRAM -- [ARGS] | --version
Execute a program under the supervision of a valid init process (tini)
Command line options:
--version: Show version and exit.
-h: Show this help message and exit.
-s: Register as a process subreaper (requires Linux >= 3.4).
-p SIGNAL: Trigger SIGNAL when parent dies, e.g. "-p SIGKILL".
-v: Generate more verbose output. Repeat up to 3 times.
-w: Print a warning when processes are getting reaped.
-g: Send signals to the child's process group.
-e EXIT_CODE: Remap EXIT_CODE (from 0 to 255) to 0.
-l: Show license and exit.
Environment variables:
TINI_SUBREAPER: Register as a process subreaper (requires Linux >= 3.4).
TINI_VERBOSITY: Set the verbosity level (default: 1).
TINI_KILL_PROCESS_GROUP: Send signals to the child's process group.
Could you advise?Jim Crist-Harif
12/29/2020, 3:01 PMdocker run -it --rm prefecthq/prefect:latest /usr/bin/env bash
we'll want to update those docs, thanks for pointing that out.Matthew Blau
12/29/2020, 3:16 PMJim Crist-Harif
12/29/2020, 3:19 PMMatthew Blau
12/29/2020, 3:22 PMJim Crist-Harif
12/29/2020, 3:23 PMprefect server start
(if you have docker running locally) and everything should just work. See https://docs.prefect.io/orchestration/server/deploy-local.htmlprefecthq/prefect
image is for running flows, not prefect server (that's a separate set of images).Matthew Blau
12/29/2020, 3:27 PMJim Crist-Harif
12/29/2020, 3:29 PMdocker-compose
backed setup for deploying it as a set of docker containers by running prefect server start
. This requires a local install of prefect
to run the initial command, but the actual server services run inside several docker containers in your environment.Matthew Blau
12/29/2020, 3:32 PMJim Crist-Harif
12/29/2020, 3:33 PMMatthew Blau
12/29/2020, 3:42 PMJim Crist-Harif
12/29/2020, 3:49 PMMatthew Blau
12/29/2020, 3:52 PMJim Crist-Harif
12/29/2020, 3:54 PMMatthew Blau
12/29/2020, 6:42 PMprefect server start
has a whole bunch of logging information in the terminal, is there a best practices deployment strategy that allows for us to hide that away like we would pipe other things to dev/null so that it can continue to run without being in the foreground? Any docs that you can point me to?Jim Crist-Harif
12/29/2020, 6:43 PMprefect server start -d
should start all your services as docker containers, then return with them running in the background. You can do
prefect server stop
later to stop everything. This requires prefect 0.14.1, which was just released today.Matthew Blau
12/29/2020, 6:49 PMprefect server start -d --use-volume
so I can configure persistence as well?Jim Crist-Harif
12/29/2020, 6:51 PMit will pull down and install the latest version, correct?I'm not familiar with pipenv, but most tools for installing python libraries install the latest versions by default. You can check your version of prefect with
prefect version
.
And yes, the above command should work fine.Matthew Blau
12/29/2020, 7:45 PMJim Crist-Harif
12/29/2020, 7:46 PM