From c5b5e9413ecdbfdbb08a173e8e1c9cac10e78a45 Mon Sep 17 00:00:00 2001 From: Heds Simons Date: Mon, 17 Sep 2018 14:51:35 +0100 Subject: [PATCH] postgres: `resin` db created by `docker` user Due to recent changes in the Postgres codebase, and rebuilds of tagged Docker images, the default `postgres` user will no longer exist. See: https://github.com/docker-library/postgres/commit/0aff40cb72f4f5968a1bb4cb04e2fc6f1ce8857e Database is now created by the generated `docker` user. Connects-to: 13 Change-type: patch Signed-off-by: Heds Simons --- .resinci.yml | 6 ++++++ README.md | 0 create-resin-db.sh | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .resinci.yml create mode 100644 README.md diff --git a/.resinci.yml b/.resinci.yml new file mode 100644 index 0000000..614ffd8 --- /dev/null +++ b/.resinci.yml @@ -0,0 +1,6 @@ +docker: + publish: false + builds: + - dockerfile: Dockerfile + docker_repo: resin/open-balena-db + path: . diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/create-resin-db.sh b/create-resin-db.sh index 02cbbdc..ceab7d7 100755 --- a/create-resin-db.sh +++ b/create-resin-db.sh @@ -1,5 +1,5 @@ #!/bin/bash -psql --username postgres <<-EOSQL +psql --username docker <<-EOSQL CREATE DATABASE resin; EOSQL