Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building docker image on tag 3.3-p1 fails #1038

Closed
cgs-lbergeron opened this issue Oct 17, 2024 · 3 comments · Fixed by #1051
Closed

Building docker image on tag 3.3-p1 fails #1038

cgs-lbergeron opened this issue Oct 17, 2024 · 3 comments · Fixed by #1051

Comments

@cgs-lbergeron
Copy link

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

@Ajaiswal2610
Copy link

somebody please help

@Falcondevils
Copy link

Please help. I am also stuck here

@Falcondevils
Copy link

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.

@hughcapet hughcapet linked a pull request Nov 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants