Rafal
05/28/2020, 1:40 PMjosh
05/28/2020, 1:59 PMsudo ufw disable
sudo systemctl restart docker
Rafal
05/28/2020, 2:22 PMjosh
05/28/2020, 2:25 PMYufei
05/28/2020, 4:36 PMPedro Machado
05/29/2020, 2:42 PMjosh
05/29/2020, 2:49 PMdocker-compose.yml
and then run docker-compose up
(in the same directory) what happens?
version: "3.7"
services:
postgres:
image: "postgres:11"
ports:
- "${POSTGRES_HOST_PORT:-5432}:5432"
environment:
POSTGRES_USER: prefect
POSTGRES_PASSWORD: test-password
POSTGRES_DB: prefect_server
networks:
- prefect-server
restart: "always"
command:
- "postgres"
- "-c"
- "max_connections=150"
networks:
prefect-server:
name: prefect-server
Pedro Machado
05/29/2020, 5:03 PMpedro@DESKTOP-9OKD69C:.../Users/pedro/scratch$ docker-compose up
Creating network "prefect-server" with the default driver
Creating scratch_postgres_1 ... done
Attaching to scratch_postgres_1
postgres_1 | The files belonging to this database system will be owned by user "postgres".
postgres_1 | This user must also own the server process.
postgres_1 |
postgres_1 | The database cluster will be initialized with locale "en_US.utf8".
postgres_1 | The default database encoding has accordingly been set to "UTF8".
postgres_1 | The default text search configuration will be set to "english".
postgres_1 |
postgres_1 | Data page checksums are disabled.
postgres_1 |
postgres_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1 | creating subdirectories ... ok
postgres_1 | selecting default max_connections ... 100
postgres_1 | selecting default shared_buffers ... 128MB
postgres_1 | selecting default timezone ... Etc/UTC
postgres_1 | selecting dynamic shared memory implementation ... posix
postgres_1 | creating configuration files ... ok
postgres_1 | running bootstrap script ... ok
postgres_1 | performing post-bootstrap initialization ... ok
postgres_1 | syncing data to disk ... ok
postgres_1 |
postgres_1 | Success. You can now start the database server using:
postgres_1 |
postgres_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres_1 |
postgres_1 |
postgres_1 | WARNING: enabling "trust" authentication for local connections
postgres_1 | You can change this by editing pg_hba.conf or using the option -A, or
postgres_1 | --auth-local and --auth-host, the next time you run initdb.
postgres_1 | waiting for server to start....2020-05-29 17:02:22.240 UTC [46] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1 | 2020-05-29 17:02:22.263 UTC [47] LOG: database system was shut down at 2020-05-29 17:02:22 UTC
postgres_1 | 2020-05-29 17:02:22.272 UTC [46] LOG: database system is ready to accept connections
postgres_1 | done
postgres_1 | server started
postgres_1 | CREATE DATABASE
postgres_1 |
postgres_1 |
postgres_1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres_1 |
postgres_1 | 2020-05-29 17:02:22.691 UTC [46] LOG: received fast shutdown request
postgres_1 | waiting for server to shut down....2020-05-29 17:02:22.696 UTC [46] LOG: aborting any active transactions
postgres_1 | 2020-05-29 17:02:22.699 UTC [46] LOG: background worker "logical replication launcher" (PID 53) exited with exit code 1
postgres_1 | 2020-05-29 17:02:22.699 UTC [48] LOG: shutting down
postgres_1 | 2020-05-29 17:02:22.725 UTC [46] LOG: database system is shut down
postgres_1 | done
postgres_1 | server stopped
postgres_1 |
postgres_1 | PostgreSQL init process complete; ready for start up.
postgres_1 |
postgres_1 | 2020-05-29 17:02:22.804 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres_1 | 2020-05-29 17:02:22.804 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres_1 | 2020-05-29 17:02:22.811 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1 | 2020-05-29 17:02:22.829 UTC [64] LOG: database system was shut down at 2020-05-29 17:02:22 UTC
postgres_1 | 2020-05-29 17:02:22.835 UTC [1] LOG: database system is ready to accept connections
josh
05/29/2020, 5:08 PMprefect server start
off of an install from this branch:
pip install <https://github.com/PrefectHQ/prefect.git@rootles_docker_linux_fix>
And then confirm it’s running off of this brach by running prefect version
to see if the output is something like 0.11.4+7.g846eb1f4f
host.docker.internal:""
since get_docker_ip
may be returning nothingPedro Machado
05/29/2020, 8:00 PMgit+
before the url.
pip install git+<https://github.com/PrefectHQ/prefect.git@rootles_docker_linux_fix>
josh
05/29/2020, 8:05 PMPedro Machado
05/29/2020, 8:08 PMprefect server stop
command?josh
05/29/2020, 9:58 PMdocker-compose down
Someone else just asked about this 😄 https://prefect-community.slack.com/archives/CL09KU1K7/p1590781806173900Pedro Machado
05/29/2020, 10:08 PMjosh
05/29/2020, 10:20 PMshow
or export
command so the yaml file could be output to stdout and worked withPedro Machado
05/29/2020, 10:26 PMimport
or -f
so you can start a custom docker-compose with prefect server start --input <my file>
Rafal
06/03/2020, 6:25 PMjosh
06/03/2020, 6:26 PM0.11.5
give it a test!Rafal
06/03/2020, 7:22 PMjosh
06/03/2020, 7:25 PMRafal
06/03/2020, 7:32 PM