hello i’m trying to configure postgres 9.6 on circleCI, however i get the error unknown user: postgres
. My circleCI config is:
- image: postgres:9.6
# other config
- run:
name: Setup postgresql user
command: sudo -u postgres psql -p 5432 -c "create user testuser with password 'testpass';"
command: sudo -u postgres psql -p 5432 -c "alter user testuser with superuser;"
command: sudo -u postgres psql -p 5432 -c "create database testdb;"
command: sudo -u postgres psql -p 5432 -c "grant all privileges on database testdb to testuser;"