Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Ensure Docker loads local_postgres sql scripts in correct order #90

Merged
merged 3 commits into from
Jun 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/cc_catalog_airflow/local_postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ FROM postgres:13.2
ENV POSTGRES_USER=deploy
ENV POSTGRES_PASSWORD=deploy
ENV POSTGRES_DB=openledger
ADD ./openledger_image_schema.sql /docker-entrypoint-initdb.d
ADD ./openledger_old_image_schema.sql /docker-entrypoint-initdb.d
ADD ./openledger_image_view.sql /docker-entrypoint-initdb.d
ADD ./aws_s3_mock.sql /docker-entrypoint-initdb.d
ADD ./airflow_user_db.sql /docker-entrypoint-initdb.d
ADD 0001_airflow_user_db.sql /docker-entrypoint-initdb.d
ADD 0002_aws_s3_mock.sql /docker-entrypoint-initdb.d
ADD 0003_openledger_image_schema.sql /docker-entrypoint-initdb.d
ADD 0004_openledger_image_view.sql /docker-entrypoint-initdb.d
ADD 0005_openledger_old_image_schema.sql /docker-entrypoint-initdb.d
RUN apt-get -y update && apt-get -y install python3-boto3 postgresql-plpython3-13