minus34 / gnaf-loader

A quick way to get started with Geoscape's open GNAF & Admin Boundaries
Apache License 2.0
185 stars 66 forks source link

docker-compose up failed #52

Closed OmerObaid closed 3 years ago

OmerObaid commented 3 years ago

Attempting to run the docker-composer up but i am getting error

 => CACHED [3/8] RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -                                                                                       0.0s
 => ERROR [4/8] RUN apt-get update && apt-get install -y --no-install-recommends   postgresql-client-9.6 postgis &&   apt-get autoremove -y --purge &&   apt-get clean && rm -rf /var/lib/apt  41.7s
------                                                                                                                                                                                               
 > [4/8] RUN apt-get update && apt-get install -y --no-install-recommends   postgresql-client-9.6 postgis &&   apt-get autoremove -y --purge &&   apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*:                                                                                                                                                                                         
#6 2.236 Ign http://apt.postgresql.org jessie-pgdg InRelease                                                                                                                                         
#6 2.449 Ign http://apt.postgresql.org jessie-pgdg Release.gpg                                                                                                                                       
#6 2.552 Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
#6 2.702 Ign http://apt.postgresql.org jessie-pgdg Release
#6 2.711 Ign http://deb.debian.org jessie InRelease
#6 3.347 Get:2 http://deb.debian.org jessie Release.gpg [1652 B]
#6 3.347 Err http://apt.postgresql.org jessie-pgdg/main amd64 Packages
#6 3.347   
#6 3.474 Get:3 http://deb.debian.org jessie Release [77.3 kB]
#6 3.546 Err http://apt.postgresql.org jessie-pgdg/main amd64 Packages
#6 3.546   
#6 3.958 Err http://apt.postgresql.org jessie-pgdg/main amd64 Packages
#6 3.958   
#6 3.995 Get:4 http://security.debian.org jessie/updates/main amd64 Packages [992 kB]
#6 4.262 Err http://apt.postgresql.org jessie-pgdg/main amd64 Packages
#6 4.262   
#6 4.541 Err http://apt.postgresql.org jessie-pgdg/main amd64 Packages
#6 4.541   404  Not Found [IP: 87.238.57.227 80]
#6 4.711 Get:5 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
#6 41.64 Fetched 10.2 MB in 39s (256 kB/s)
#6 41.64 W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/jessie-pgdg/main/binary-amd64/Packages  404  Not Found [IP: 87.238.57.227 80]
#6 41.64 
#6 41.64 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
executor failed running [/bin/sh -c apt-get update && apt-get install -y --no-install-recommends   postgresql-client-9.6 postgis &&   apt-get autoremove -y --purge &&   apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*]: exit code: 100
ERROR: Service 'loader' failed to build : Build failed
minus34 commented 3 years ago

I'm guessing that error was caused by the very old Postgres binaries being taken down by the host.

I've rebuilt the Docker image completely to use Postgres 13 and PostGIS 3.0. The code is currently in the 202105 branch, now under the docker folder:

https://github.com/minus34/gnaf-loader/tree/202105/docker

The Docker build and run commands are in the xx_code_snippets.sh file. It's no longer a docker-compose up build.

FYI - the code will go to master after the May 2021 release of GNAF in a couple of weeks.