1EdTech / lti-1-3-php-example-tool

47 stars 42 forks source link

Docker build crash #12

Open Lyanthropos opened 5 months ago

Lyanthropos commented 5 months ago

When running docker compose up --build the build fails on the final stage with the following errors while running the composer.phar.

Error

```[app 6/6] RUN chmod a+x /bin/composer.phar && apt-get update -y && apt-get install git unzip -y: 0.239 Ign:1 http://security.debian.org/debian-security stretch/updates InRelease 0.248 Get:2 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB] 0.295 Ign:3 http://deb.debian.org/debian stretch InRelease 0.295 Ign:4 http://deb.debian.org/debian stretch-updates InRelease 0.295 Get:5 http://deb.debian.org/debian buster InRelease [122 kB] 0.295 Get:6 http://deb.debian.org/debian buster-updates InRelease [56.6 kB] 0.309 Ign:7 http://deb.debian.org/debian stretch Release 0.309 Ign:8 http://security.debian.org/debian-security stretch/updates Release 0.343 Ign:9 http://security.debian.org/debian-security stretch/updates/main all Packages 0.354 Ign:10 http://deb.debian.org/debian stretch-updates Release 0.365 Ign:11 http://deb.debian.org/debian stretch/main all Packages 0.472 Ign:12 http://deb.debian.org/debian stretch/main amd64 Packages 0.478 Ign:13 http://deb.debian.org/debian stretch-updates/main all Packages 0.583 Ign:14 http://deb.debian.org/debian stretch-updates/main amd64 Packages 0.583 Ign:15 http://security.debian.org/debian-security stretch/updates/main amd64 Packages 0.588 Ign:9 http://security.debian.org/debian-security stretch/updates/main all Packages 0.589 Ign:11 http://deb.debian.org/debian stretch/main all Packages 0.697 Ign:12 http://deb.debian.org/debian stretch/main amd64 Packages 0.704 Ign:13 http://deb.debian.org/debian stretch-updates/main all Packages 0.815 Ign:15 http://security.debian.org/debian-security stretch/updates/main amd64 Packages 0.823 Ign:9 http://security.debian.org/debian-security stretch/updates/main all Packages 0.906 Ign:14 http://deb.debian.org/debian stretch-updates/main amd64 Packages 0.911 Ign:11 http://deb.debian.org/debian stretch/main all Packages 1.052 Ign:15 http://security.debian.org/debian-security stretch/updates/main amd64 Packages 1.058 Ign:9 http://security.debian.org/debian-security stretch/updates/main all Packages 1.121 Ign:12 http://deb.debian.org/debian stretch/main amd64 Packages 1.126 Ign:13 http://deb.debian.org/debian stretch-updates/main all Packages 1.162 Ign:2 http://security.debian.org/debian-security buster/updates InRelease 1.240 Ign:14 http://deb.debian.org/debian stretch-updates/main amd64 Packages 1.292 Ign:15 http://security.debian.org/debian-security stretch/updates/main amd64 Packages 1.298 Ign:9 http://security.debian.org/debian-security stretch/updates/main all Packages 1.298 Get:16 http://security.debian.org/debian-security buster/updates/main amd64 Packages [582 kB] 1.375 Ign:11 http://deb.debian.org/debian stretch/main all Packages 1.560 Ign:12 http://deb.debian.org/debian stretch/main amd64 Packages 1.560 Ign:15 http://security.debian.org/debian-security stretch/updates/main amd64 Packages 1.565 Ign:9 http://security.debian.org/debian-security stretch/updates/main all Packages 1.671 Ign:13 http://deb.debian.org/debian stretch-updates/main all Packages 1.721 Err:15 http://security.debian.org/debian-security stretch/updates/main amd64 Packages 1.721 404 Not Found [IP: 151.101.66.132 80] 1.880 Ign:14 http://deb.debian.org/debian stretch-updates/main amd64 Packages 1.988 Ign:5 http://deb.debian.org/debian buster InRelease 1.988 Ign:11 http://deb.debian.org/debian stretch/main all Packages 2.101 Ign:12 http://deb.debian.org/debian stretch/main amd64 Packages 2.217 Ign:13 http://deb.debian.org/debian stretch-updates/main all Packages 2.322 Ign:14 http://deb.debian.org/debian stretch-updates/main amd64 Packages 2.322 Get:17 http://deb.debian.org/debian buster/main amd64 Packages [7909 kB] 2.771 Ign:11 http://deb.debian.org/debian stretch/main all Packages 2.813 Ign:6 http://deb.debian.org/debian buster-updates InRelease 2.883 Err:12 http://deb.debian.org/debian stretch/main amd64 Packages 2.883 404 Not Found 2.986 Ign:13 http://deb.debian.org/debian stretch-updates/main all Packages 3.197 Err:14 http://deb.debian.org/debian stretch-updates/main amd64 Packages 3.197 404 Not Found 3.197 Get:18 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B] 3.748 Fetched 8713 kB in 3s (2484 kB/s) 3.748 Reading package lists... 4.410 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file. 4.410 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file. 4.410 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file. 4.410 W: GPG error: http://security.debian.org/debian-security buster/updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 112695A0E562B32A NO_PUBKEY 54404762BBB6E853 4.410 W: The repository 'http://security.debian.org/debian-security buster/updates InRelease' is not signed. 4.410 W: GPG error: http://deb.debian.org/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY DCC9EFBF77E11517 4.410 W: The repository 'http://deb.debian.org/debian buster InRelease' is not signed. 4.410 W: GPG error: http://deb.debian.org/debian buster-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 4.410 W: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed. 4.410 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages 404 Not Found 4.410 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.66.132 80] 4.410 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages 404 Not Found 4.410 E: Some index files failed to download. They have been ignored, or old ones used instead. ```

Running this on an M1 chip under rosetta, having added a platform: linux/amd64 flag to the docker-compose file.

freefri commented 1 month ago

Docker build will crash because the image php:7.3.5-apache is based on Debian Stretch that is out of support. Try changing the first line on the Dockerfile to: FROM php:7.3.33-apache or to FROM php:7.3.14-apache (as in the last branch space_shooter_game from @MartinLenord , maybe those changes could be added to master)