spilo icon indicating copy to clipboard operation
spilo copied to clipboard

Building docker image on tag 3.3-p1 fails

Open cgs-lbergeron opened this issue 1 year ago • 1 comments

It worked fine a few days ago, but now I get this error :

377.2 base.sh: line 265: cd: /usr/share/postgresql/16/contrib/postgis-3.4: No such file or directory
------

 5 warnings found (use --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 9)
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 18)
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 31)
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 86)
 - SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "PG_AUTH_MON_COMMIT") (line 57)
Dockerfile:68
--------------------
  66 |
  67 |     WORKDIR /builddeps
  68 | >>> RUN bash base.sh
  69 |
  70 |     # Install wal-g
--------------------
ERROR: failed to solve: process "/bin/sh -c bash base.sh" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/s08lm3ebu00k5fsbx163jho7w

cgs-lbergeron avatar Oct 17 '24 11:10 cgs-lbergeron

somebody please help

Ajaiswal2610 avatar Oct 17 '24 17:10 Ajaiswal2610

Please help. I am also stuck here

Falcondevils avatar Oct 24 '24 18:10 Falcondevils

Actually i was able to find a workaround for this. I found in docker failed build that actually it was installing/downloading 3.5.0 version and not 3.4 #21 179.6 Get:26 http://apt.postgresql.org/pub/repos/apt jammy-pgdg/main amd64 postgresql-16-postgis-3 amd64 3.5.0+dfsg-1.pgdg22.04+1 [3834 kB]

Then I modified the dockerfile to use the same version and changed ENV POSTGIS_VERSION=3.5 from 3.4 in dockerfile.

Then docker build passed.

I am not sure if the same change is needed in the public repo. It seems postgis 3.4 might have been upgraded ubuntu level or base image.

Falcondevils avatar Oct 24 '24 19:10 Falcondevils