Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error building docker version #1135

Open
ianfoot opened this issue Apr 11, 2024 · 1 comment
Open

[BUG] Error building docker version #1135

ianfoot opened this issue Apr 11, 2024 · 1 comment
Labels
bug Features or code that is not working correctly

Comments

@ianfoot
Copy link

ianfoot commented Apr 11, 2024

Describe the bug
Docker environment fails to build

To Reproduce
Steps to reproduce the behavior:

git clone https://github.com/Attendize/Attendize
cd Attendize
git checkout master
make setup

Expected behavior
I expected a Docker build ;)

Screenshots

 => ERROR [base 2/5] RUN apt-get update && apt-get install -y wait-for-it libxrender1                                                                                                6.5s                                                                                                                                                                              
 > [base 2/5] RUN apt-get update && apt-get install -y wait-for-it libxrender1:                                                                                                           
0.935 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]                                                                                                                        
0.940 Get:2 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]                                                                                                 
0.988 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]                                                                                                               
0.989 Get:4 http://nginx.org/packages/mainline/debian buster InRelease [3607 B]                                                                                                           
1.025 Get:5 https://packages.sury.org/php buster InRelease [7559 B]
1.283 Get:6 http://security.debian.org/debian-security buster/updates/main amd64 Packages [595 kB]
1.536 Get:7 http://deb.debian.org/debian buster/main amd64 Packages [7909 kB]
2.194 Get:8 http://nginx.org/packages/mainline/debian buster/nginx amd64 Packages [60.6 kB]
2.479 Err:5 https://packages.sury.org/php buster InRelease
2.479   The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
2.850 Get:9 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B]
4.833 Reading package lists...
6.451 W: GPG error: https://packages.sury.org/php buster InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <deb@sury.org>
6.451 E: The repository 'https://packages.sury.org/php buster InRelease' is not signed.
------
Dockerfile:5
--------------------
   3 |     # Base image with nginx, php-fpm and composer built on debian
   4 |     FROM wyveo/nginx-php-fpm:php74 as base
   5 | >>> RUN apt-get update && apt-get install -y wait-for-it libxrender1
   6 |     
   7 |     # Set up code
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y wait-for-it libxrender1" did not complete successfully: exit code: 100
make: *** [Makefile:5: build] Error 1

Environment the bug happens in (Desktop, Mobile, CLI) (please complete the following information):

~/git/Attendize$ cat /etc/os-release 
NAME="Linux Mint"
VERSION="21.2 (Victoria)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 21.2"
VERSION_ID="21.2"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=victoria
UBUNTU_CODENAME=jammy

Version of Attendize you are using
master

Where you are running Attendize
Will be running in Docker

What version or Operating System are you using on the above server
Mint 21.2

What version of PHP you are using on the above server
n/a
What web server are you using Attendize with
n/a

Additional context
Add any other context about the problem here.

@ianfoot ianfoot added the bug Features or code that is not working correctly label Apr 11, 2024
@aalavandhaann
Copy link

ianfoot,

Add the following lines before the RUN apt-get update ... in the Dockerfile

# Below apt-key line added by #0K
# run the below apt-key adv line to ensure rest of the docker file works
# Refer to link https://www.faqforge.com/linux/solved-the-following-signatures-were-invalid-expkeysig-b188e2b695bd4743-deb-sury-org-automatic-signing-key/
RUN apt-key adv --fetch-keys https://packages.sury.org/php/apt.gpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Features or code that is not working correctly
Projects
None yet
Development

No branches or pull requests

2 participants