When I run .circle/config.yml, it throw error as below,
#!/bin/bash -eo pipefail
database/scripts/load_app_data_client.sh minimal
08:01 Alter reference data tables
psql: server does not support SSL, but SSL was required
08:01 Set LDS table contraints
psql: server does not support SSL, but SSL was required
08:01 Dropping Clarify Application tables
psql: server does not support SSL, but SSL was required
08:01 Dropping Clarify Application database types
psql: server does not support SSL, but SSL was required
here is my config.yml
version: 2.0
jobs:
build-and-test:
docker:
- image: circleci/node:8.9.4-stretch-browsers
environment:
- PG_HOST: localhost
- PG_USER: ubuntu
- DATABASE_URL: "postgres://@localhost:5432/circle_test?ssl=true"
- DATABASE_ADMIN_URL: postgres://@localhost:5432/circle_test?ssl=true
- image: circleci/postgres:9.6-alpine-postgis-ram
environment:
- POSTGRES_USER: ubuntu
working_directory: ~/hospital
environment:
- REDISCLOUD_URL: redis://@redis-17242.c10.us.com:17242
steps:
- checkout
# database
- run:
name: install dockerize
command: wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
environment:
DOCKERIZE_VERSION: v0.3.0
- run: sudo apt-get install -y postgresql-client
# - run: dockerize -wait tcp://localhost:5432 -timeout 1m
# Add the Postgres 10.3 binaries to the path.
# - run: echo '/usr/lib/postgresql/10.3/bin/:$PATH' >> $BASH_ENV
# - run: sleep 5 && nc -vz localhost 5432
# - run: cat data/database/create_roles.sql | psql -U ubuntu -d $DB --set db="$DB" --set role="$ROLE"
- run: cat data/database/create_roles.sql | psql -h localhost -p 5432 -U ubuntu -d $DB --set db="$DB" --set role="$ROLE"
# - run: cat data/database/create_roles.sql | psql $DATABASE_URL -U ubuntu -d $DB --set db="$DB" --set role="$ROLE"
- run: gzip -cd data/database/minimal2.backup.gz | psql -h localhost -p 5432 -U ubuntu -d $DB
- run: database/scripts/load_app_data_client.sh minimal
Can anyone help me? Many thanks!