initdb.sh:/docker-entrypoint-initdb.d/initdb. This is part of my docker-compose.yml: version: '3.7' Psql -v ON_ERROR_STOP=1 -username "$POSTGRES_USER" -d "$POSTGRES_DB" <<-EOSQLĬreate role $AUTHENTICATOR noinherit login password '$POSTGRES_PASSWORD' This is part of my initdb.sh: #!/bin/bash Btw, I read here that the container shutting down and restarting is (apparently) part of the initialization process. William Wilberforce quotes speak deeply about having a relationship with God and about love for our fellow man. He was a man who believed in loving others, he. I had the same issue but after a few hours of trying, I found a working combination of docker-compose and init script. Vincent Van Gogh quotes portray the life of a man who loved to paint and who wrote so much about love. When I get a shell into my db container, the database rivers was created but is empty, with no tables, relations, or data from my batched inserts. 17:43:06.637 UTC LOG: aborting any active transactions Strends_psql | waiting for server to shut down. Strends_psql | 17:43:06.633 UTC LOG: received fast shutdown request Strends_psql | You are now connected to database "rivers" as user "usr". I'm running into an issue where my db init process is in fact running in the container, at least batching a bunch of CREATES and INSERTS of my dump data, but then is abruptly shut down and restarted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |