openresty / docker-openresty

Docker tooling for OpenResty
https://hub.docker.com/r/openresty/openresty
BSD 2-Clause "Simplified" License
935 stars 525 forks source link

Builds for Debian 11 and 12 are broken #242

Closed rwlodarczyk-xealth closed 8 months ago

rwlodarczyk-xealth commented 8 months ago

For Debian 11, I get: E: Unable to locate package openresty For Debian 12, I get: E: Version '1.21.4.3-1~bookworm1' for 'openresty' was not found

However, when performing an apt search openresty, the package is shown:

...
openresty/unknown 1.21.4.3-1~bookworm1 amd64
  core server of OpenResty for production use
...

Even an apt-get install openresty gives an error:

root@5ce456b4e83b:/# apt-get update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 https://openresty.org/package/debian bookworm InRelease
Reading package lists... Done
root@5ce456b4e83b:/#
root@5ce456b4e83b:/# apt-get install openresty
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package openresty is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'openresty' has no installation candidate
rwlodarczyk-xealth commented 8 months ago

Hmm, this seems to be specific ONLY building on Macs with M1/2/3. Probably my build string is wrong because of architecture differences (e.g. arm64 vs amd64).

neomantra commented 8 months ago

Yes, it is that. See the .travis.yml for examples:

docker build  --build-arg RESTY_APT_REPO="https://openresty.org/package/arm64/debian" --build-arg RESTY_APT_ARCH=arm64 -f bookworm/Dockerfile .