wodby / docker4drupal

Docker-based Drupal stack
https://wodby.com/docker4drupal
MIT License
1.24k stars 534 forks source link

PHP-container: composer public keys missing #478

Open gitwolf1060 opened 3 years ago

gitwolf1060 commented 3 years ago

OS type Linux

Drupal version 9

Codebase mounted codebase

Describe the bug

docker-compose run php composer self-update --update-keys

reports Public keys stored in /home/wodby/.composer However, key.dev.pem and key.tags.pem have not been saved in /home/wodby/.composer after self-update of composer from 2.0.11 to 2.0.12. and not after a separate key update with manual insertion of the keys. I keep getting the following results (same from inside the php container):

docker-compose run php composer diagnose

Checking composer.json: OK Checking platform settings: OK Checking git settings: OK 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.0.12 PHP version: 8.0.3 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.1k zip: extension present, unzip present

Output of docker info Client: Context: default Debug Mode: false Plugins: app: Docker App (Docker Inc., v0.9.1-beta3) buildx: Build with BuildKit (Docker Inc., v0.5.1-docker) Server: Containers: 21 Running: 11 Paused: 0 Stopped: 10 Images: 13 Server Version: 20.10.5 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 1 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc Default Runtime: runc Init Binary: docker-init containerd version: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e runc version: 12644e614e25b05da6fd08a38ffa0cfe1903fdec init version: de40ad0 Security Options: apparmor seccomp Profile: default Kernel Version: 5.10.0-0.bpo.4-amd64 Operating System: Debian GNU/Linux 10 (buster) OSType: linux Architecture: x86_64 CPUs: 1 Total Memory: 3.841GiB Name: node.mydomain.tld ID: [...] Docker Root Dir: /var/lib/docker Debug Mode: false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false

Contents of your docker-compose.yml version: "3.6" networks: drupal: [...] nginx: image: wodby/nginx:$NGINX_TAG container_name: "${PROJECT_NAME}_nginx" depends_on:

Contents of your .env PROJECT_NAME=testsite1 PROJECT_BASE_URL=mydomain.tld DB_NAME=xxxxx DB_USER=xxxxx DB_PASSWORD=xxxxx DB_ROOT_PASSWORD=xxxxx DB_HOST=mariadb-drup DB_PORT=3306 DB_DRIVER=mysql MARIADB_TAG=10.5-3.12.2 DRUPAL_TAG=9-4.28.0 PHP_TAG=8.0-dev-4.24.4 NGINX_TAG=1.19-5.13.5 NGINX_VHOST_PRESET=drupal9 REDIS_TAG=6-3.7.2

Logs output docker-compose logs Attaching to testsite1_php php_1 | [06-Apr-2021 09:11:51] NOTICE: fpm is running, pid 1 php_1 | [06-Apr-2021 09:11:51] NOTICE: ready to handle connections php_1 | 172.23.0.9 - 06/Apr/2021:09:16:44 +0000 "GET /index.php" 401

gitwolf1060 commented 3 years ago

Ah, I didn't know that that commented out lines were printed in huge bold fonts, sorry about that.