Building the Docker image fails on macOS
The building of the Docker image fails on a macOS system:
thomas.juerges@IT001965.local hdbpp-timescale-docker (main) 40: make
mkdir -p build-files/
cp -rf ../schema/ build-files/
docker build --build-arg PG_VERSION=pg13 --build-arg TDB_VERSION=latest -t hdbpp-timescale:latest --target hdbpp-timescale .
[+] Building 4.3s (7/9) docker:desktop-linux
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.95kB 0.0s
=> [internal] load metadata for docker.io/timescale/timescaledb:latest-pg13 4.2s
=> [hdbpp-timescale 1/5] FROM docker.io/timescale/timescaledb:latest-pg13@sha256:396f6cff272f3b6937696c045fe1a12db77cc76eb 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 2B 0.0s
=> ERROR [hdbpp-timescale 2/5] COPY build-files/schema/hdb_schema.sql /docker-entrypoint-initdb.d/901_hdb_schema.sql 0.0s
=> ERROR [hdbpp-timescale 3/5] COPY build-files/schema/hdb_roles.sql /docker-entrypoint-initdb.d/902_hdb_roles.sql 0.0s
------
> [hdbpp-timescale 2/5] COPY build-files/schema/hdb_schema.sql /docker-entrypoint-initdb.d/901_hdb_schema.sql:
------
------
> [hdbpp-timescale 3/5] COPY build-files/schema/hdb_roles.sql /docker-entrypoint-initdb.d/902_hdb_roles.sql:
------
Dockerfile:6
--------------------
4 |
5 | COPY build-files/schema/hdb_schema.sql /docker-entrypoint-initdb.d/901_hdb_schema.sql
6 | >>> COPY build-files/schema/hdb_roles.sql /docker-entrypoint-initdb.d/902_hdb_roles.sql
7 |
8 | USER root
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 2f3d9a09-01ee-49a9-a439-0c0dedb642dc::iygqkcya4y0775qtaodbxgoif: "/build-files/schema/hdb_roles.sql": not found
make: *** [build-files/.built] Error 1
When I correct the Dockerfile, the Docker image can be built. --> I'll open an MR.