diff --git a/earthly/postgresql/Earthfile b/earthly/postgresql/Earthfile index 9e27ae444..0a7fe0321 100644 --- a/earthly/postgresql/Earthfile +++ b/earthly/postgresql/Earthfile @@ -16,23 +16,23 @@ postgres-base: colordiff \ musl-dev \ curl \ - gcc + gcc \ + python3 # Get refinery COPY ../rust+rust-base/refinery /bin COPY ./entry.sh . - RUN chmod ugo+x ./entry.sh - COPY setup-db.sql . + COPY ./setup-db.sql . # Common PostgreSQL setup. # Prepare important files needed for building image BUILDER: COMMAND - COPY ./entry.sh . + RUN cp /root/entry.sh . RUN chmod ugo+x ./entry.sh - COPY setup-db.sql . + RUN cp /root/setup-db.sql . # Base checks for sql files # TODO: https://github.com/input-output-hk/catalyst-ci/issues/62 diff --git a/earthly/postgresql/Readme.md b/earthly/postgresql/Readme.md index 70c04fd31..616c794a0 100644 --- a/earthly/postgresql/Readme.md +++ b/earthly/postgresql/Readme.md @@ -25,7 +25,7 @@ builder: WORKDIR /build - COPY --dir example/migrations example/data example/refinery.toml + COPY --dir ./example/migrations ./example/data ./example/refinery.toml . DO +BUILDER build: