nginxinc / NGINX-Demos

NGINX and NGINX Plus demos
Apache License 2.0
1.26k stars 670 forks source link

Unable to build docker container for nginx-regex-tester #91

Closed jourdan-wag closed 1 year ago

jourdan-wag commented 1 year ago

Hello,

I have pulled the latest master of the repo and am following the setup instructions from the README for the nginx-regex-tester demo. However, I am encountering an error when running $ docker-compose up -d:

$ docker-compose up -d
[+] Building 4.1s (15/18)                                                                                                                                                                                                
 => [internal] load build definition from Dockerfile                                                                                                                                                                0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                                                                                   0.0s
 => => transferring context: 2B                                                                                                                                                                                     0.0s
 => [internal] load metadata for docker.io/library/nginx:latest                                                                                                                                                     2.0s
 => [auth] library/nginx:pull token for registry-1.docker.io                                                                                                                                                        0.0s
 => [internal] load build context                                                                                                                                                                                   0.0s
 => => transferring context: 135B                                                                                                                                                                                   0.0s
 => [ 1/13] FROM docker.io/library/nginx:latest@sha256:2ab30d6ac53580a6db8b657abf0f68d75360ff5cc1670a85acb5bd85ba1b19c0                                                                                             0.0s
 => CACHED [ 2/13] COPY start.sh /usr/local/sbin                                                                                                                                                                    0.0s
 => CACHED [ 3/13] RUN chmod +x /usr/local/sbin/start.sh                                                                                                                                                            0.0s
 => CACHED [ 4/13] RUN apt-get update && apt-get install -y -q wget curl apt-transport-https lsb-release ca-certificates gnupg                                                                                      0.0s
 => CACHED [ 5/13] RUN wget -q -O - http://nginx.org/keys/nginx_signing.key | gpg --dearmor > /usr/share/keyrings/nginx-archive-keyring.gpg                                                                         0.0s
 => CACHED [ 6/13] RUN rm /etc/nginx/conf.d/*                                                                                                                                                                       0.0s
 => CACHED [ 7/13] COPY regextester.conf /etc/nginx/conf.d                                                                                                                                                          0.0s
 => CACHED [ 8/13] RUN printf "deb https://packages.nginx.org/unit/debian/ `lsb_release -cs` unit" > /etc/apt/sources.list.d/unit.list                                                                              0.0s
 => CACHED [ 9/13] RUN printf "deb-src https://packages.nginx.org/unit/debian/ `lsb_release -cs` unit" >> /etc/apt/sources.list.d/unit.list                                                                         0.0s
 => ERROR [10/13] RUN apt-get update && apt-get install -y unit php7.0 unit-php                                                                                                                                     1.9s
------                                                                                                                                                                                                                   
 > [10/13] RUN apt-get update && apt-get install -y unit php7.0 unit-php:                                                                                                                                                
#0 0.363 Hit:1 http://deb.debian.org/debian bullseye InRelease                                                                                                                                                           
#0 0.364 Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease                                                                                                                                         
#0 0.381 Hit:3 http://deb.debian.org/debian bullseye-updates InRelease                                                                                                                                                   
#0 1.055 Get:4 https://packages.nginx.org/unit/debian bullseye InRelease [2815 B]                                                                                                                                        
#0 1.193 Err:4 https://packages.nginx.org/unit/debian bullseye InRelease
#0 1.193   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62
#0 1.201 Reading package lists...
#0 1.918 W: GPG error: https://packages.nginx.org/unit/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62
#0 1.918 E: The repository 'https://packages.nginx.org/unit/debian bullseye InRelease' is not signed.
------
failed to solve: executor failed running [/bin/sh -c apt-get update && apt-get install -y unit php7.0 unit-php]: exit code: 100

Any ideas on what the issue could be here?