Tecnativa / doodba

Base image for making the creation of customized Odoo environments a piece of cake
Apache License 2.0
436 stars 305 forks source link

Cannot build doodba:8.0-onbuild Image #544

Open samsagaz opened 1 year ago

samsagaz commented 1 year ago

Describe the bug I cannot build the doodba image because debian Wheezy and Jessie were recently removed from the mirror network.

To Reproduce

Just run invoke img-build or docker-compose build --no-cache

 => ERROR [5/1] RUN /opt/odoo/common/build && sync                                                                                                                                                                                                     1969.5s
------
 > [5/1] RUN /opt/odoo/common/build && sync:
#0 0.415 Updating certificates in /etc/ssl/certs... 0 added, 1 removed; done.
#0 1.234 Running hooks in /etc/ca-certificates/update.d....done.
#0 1.255 doodba WARNING: Not aggregating code repositories
#0 1.260
#0 1.260 WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
#0 1.260
#0 1131.7 Ign http://deb.debian.org jessie InRelease
#0 1131.7 Ign http://deb.debian.org jessie Release.gpg
#0 1131.7 Ign http://deb.debian.org jessie Release
#0 1131.8 Ign http://security.debian.org jessie/updates InRelease
#0 1132.0 Err http://deb.debian.org jessie/main amd64 Packages
#0 1132.0
#0 1132.2 Err http://deb.debian.org jessie/main amd64 Packages
#0 1132.2
#0 1132.2 Get:1 https://deb.nodesource.com jessie InRelease [4607 B]
#0 1470.3 Err http://deb.debian.org jessie/main amd64 Packages
#0 1470.3
#0 1470.3 Ign http://security.debian.org jessie/updates Release.gpg
#0 1470.3 Get:2 https://apt-archive.postgresql.org jessie-pgdg-archive InRelease [4697 B]
#0 1470.6 Err http://deb.debian.org jessie/main amd64 Packages
#0 1470.6
#0 1470.6 Ign http://security.debian.org jessie/updates Release
#0 1470.8 Err http://security.debian.org jessie/updates/main amd64 Packages
#0 1470.8
#0 1471.0 Err http://deb.debian.org jessie/main amd64 Packages
#0 1471.0   404  Not Found
#0 1471.2 Err http://security.debian.org jessie/updates/main amd64 Packages
#0 1471.2
#0 1471.5 Err http://security.debian.org jessie/updates/main amd64 Packages
#0 1471.5
#0 1471.9 Err http://security.debian.org jessie/updates/main amd64 Packages
#0 1471.9
#0 1472.4 Err http://security.debian.org jessie/updates/main amd64 Packages
#0 1472.4   404  Not Found [IP: 151.101.130.132 80]
#0 1634.0 Get:3 https://deb.nodesource.com jessie/main Sources [20 B]
#0 1967.3 Get:4 https://deb.nodesource.com jessie/main amd64 Packages [1005 B]
#0 1968.3 Get:5 https://apt-archive.postgresql.org jessie-pgdg-archive/main Sources [422 kB]
#0 1969.0 Get:6 https://apt-archive.postgresql.org jessie-pgdg-archive/main amd64 Packages [1142 kB]
#0 1969.5 W: Failed to fetch http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages  404  Not Found
#0 1969.5
#0 1969.5 W: Failed to fetch http://security.debian.org/debian-security/dists/jessie/updates/main/binary-amd64/Packages  404  Not Found [IP: 151.101.130.132 80]
#0 1969.5
#0 1969.5 E: Some index files failed to download. They have been ignored, or old ones used instead.
#0 1969.5 Fetched 1575 kB in 13min 57s (1879 B/s)
#0 1969.5 Traceback (most recent call last):
#0 1969.5   File "/opt/odoo/common/build", line 30, in <module>
#0 1969.5     subprocess.check_call(command)
#0 1969.5   File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
#0 1969.5     raise CalledProcessError(retcode, cmd)
#0 1969.5 subprocess.CalledProcessError: Command '/opt/odoo/custom/build.d/20-update-pg-repos' returned non-zero exit status 100

I think that 7.0 wont work either

ap-wtioit commented 1 year ago

Images for 8.0 have been not supported for quite some time. They are not build/tested since https://github.com/Tecnativa/doodba/commit/20dfe8a42487ce00f8220d56e06263c296bfd6db and not included anymore with https://github.com/Tecnativa/doodba/commit/1ad4dfc2b88523cabc260872b40d8832217178d5.

Some things you can try:

orentol commented 1 year ago

@samsagaz Debian Jessie is very old and apt sources are no more reachable. You need to build and host fixed image yourself.

Or you can try to add proper sources in existing build. Create file named: 10-add-jessie_backport

hier: [docker_project]/odoo/custom/build.d/10-add-jessie_backport

and add this inside:

printf "\nAcquire::Check-Valid-Until "false";" >> /etc/apt/apt.conf
printf "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main\ndeb-src [check-valid-until=no] http://archive.debian.org/debian jessie-backports main\ndeb [check-valid-until=no] http://archive.debian.org/debian-security jessie/updates main\ndeb-src [check-valid-until=no] http://archive.debian.org/debian-security jessie/updates main\ndeb [check-valid-until=no] http://archive.debian.org/debian jessie main\ndeb-src [check-valid-until=no] http://archive.debian.org/debian jessie main" > /etc/apt/sources.list
manuel-florido commented 11 months ago

@samsagaz Hello, I am having the same issue with v.10. Did you solve the problem?

I tried adding the "10-add-jessie_backport" file like @orentol and I modified the Dockerfile adding:

When I build the image I get this error with the bin-deprecated/install.sh file:

Do you know how to build the image correctly?

Thanks!

@yajo @pedrobaeza