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

Missing pubkeys when using multi-stage build #283

Open
freezy-sk opened this issue Apr 13, 2023 · 2 comments
Open

Missing pubkeys when using multi-stage build #283

freezy-sk opened this issue Apr 13, 2023 · 2 comments

Comments

@freezy-sk
Copy link

freezy-sk commented Apr 13, 2023

Composer "installed" through multi-stage build (COPY --from=composer/composer /usr/bin/composer /usr/bin/composer) shows missing pubkeys when I run composer diagnose.
Running composer self-update --update-keys is not possible in non-interactive mode.
What is the best way to update these pubkeys and fix the error?

Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK git version 2.30.2
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys: FAIL
Missing pubkey for tags verification
Missing pubkey for dev verification
Run composer self-update --update-keys to set them up
Checking composer version: OK
Composer version: 2.5.5
PHP version: 7.3.33
PHP binary path: /usr/local/bin/php
OpenSSL version: OpenSSL 1.1.1k  25 Mar 2021
cURL version: 7.74.0 libz 1.2.11 ssl OpenSSL/1.1.1n
zip: extension present, unzip present, 7-Zip not available
@alcohol
Copy link
Member

alcohol commented Apr 14, 2023

There is no best way. There are multiple solutions depending on your use-case scenario. Either install them programmatically in the image, or mount them into the image from your host.

@stof
Copy link

stof commented May 24, 2023

If you don't intend to run self-update in your container (which you probably should not if you use a multi-stage build as updating composer should be done by updating the image providing composer instead), you don't really need the pubkey though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants