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

Dockerfile PHP version mismatching composer.json PHP version #32

Closed
karnaf opened this issue Mar 29, 2021 · 1 comment
Closed

Dockerfile PHP version mismatching composer.json PHP version #32

karnaf opened this issue Mar 29, 2021 · 1 comment
Assignees
Labels
Bug Something isn't working
Milestone

Comments

@karnaf
Copy link

karnaf commented Mar 29, 2021

Bug Report

Q A
Version(s) 1.6.x

Summary

Dockerfile uses php:7.2-apache but composer.json requires "php": "^7.3",

Current behavior

When installing the skeleton project and trying to update composer fails with problems because the PHP versions do not match

root@315312c95fec:/var/www# composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Root composer.json requires php ^7.3 but your php version (7.2.34) does not satisfy that requirement.
  Problem 2
    - phpunit/phpunit[9.5.0, ..., 9.5.4] require php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
    - Root composer.json requires phpunit/phpunit ^9.5 -> satisfiable by phpunit/phpunit[9.5.0, ..., 9.5.4].

How to reproduce

Download the ZIP version of the project - api-tools-skeleton-1.6.x.zip
Unsip the archive
Run docker-compose up -d
Access the container with docker exec -it api-tools-skeleton-16x_apigility_1 /bin/bash
Run composer update

Expected behavior

composer update to finish successfully

@karnaf karnaf added the Bug Something isn't working label Mar 29, 2021
@Ocramius
Copy link
Member

Ocramius commented Feb 9, 2022

Handled in #39, although we really should move the docker PHP version to 8.1.

@Ocramius Ocramius closed this as completed Feb 9, 2022
@Ocramius Ocramius self-assigned this Feb 9, 2022
@Ocramius Ocramius added this to the 1.7.0 milestone Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants