Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

Composer not looking at php container requirements #92

Open
bobmulder opened this issue Jul 8, 2016 · 1 comment
Open

Composer not looking at php container requirements #92

bobmulder opened this issue Jul 8, 2016 · 1 comment

Comments

@bobmulder
Copy link

I am trying the composer image like this:

version: '2'
services:
  php:
    build: .
    volumes:
      - .:/var/www/html
  web:
    image: nginx
    ports:
      - "80:80"
    volumes:
      - .:/var/www/html
      - ./server.conf:/etc/nginx/conf.d/default.conf
    links:
      - php
  composer:
    image: 'composer/composer'
    volumes:
      - .:/var/www/html
    working_dir: /var/www/html
    command: update

When running docker-compose run composer, I'll get the following message:

Your requirements could not be resolved to an installable set of packages.

Next a list follows of unresolved requirements because some extensions of the framework are not installed. However, I installed them on my own build, which should be enough.

Any suggestions what I'm doing wrong?

In my opinion the composer image should only install composer and run the commands. Requirements of the machine are done in the php build....

@iammichiel
Copy link

You are probably trying to install packages with hardware dependencies. You should add :
--ignore-platform-reqs to your update command.

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

No branches or pull requests

2 participants