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

Symfony install via composer #97

Closed
nicraMarcin opened this issue Nov 12, 2018 · 5 comments
Closed

Symfony install via composer #97

nicraMarcin opened this issue Nov 12, 2018 · 5 comments

Comments

@nicraMarcin
Copy link
Contributor

nicraMarcin commented Nov 12, 2018

Hi, your code assumes that user already has installed symfony but to install symfony in proper way there have to use composer composer create-project symfony/website-skeleton symfony but composer is available after run docker-compose up.

there should be option to run create project.

docker-compose exec php sh


/var/www # composer create-project symfony/website-skeleton my-project
Installing symfony/website-skeleton (v4.1.7.7)
  - Installing symfony/website-skeleton (v4.1.7.7): Downloading (100%)         
Created project in my-project
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for facebook/webdriver 1.6.0 -> satisfiable by facebook/webdriver[1.6.0].
    - facebook/webdriver 1.6.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
  Problem 2
    - facebook/webdriver 1.6.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - symfony/panther v0.2.0 requires facebook/webdriver ^1.5 -> satisfiable by facebook/webdriver[1.6.0].
    - Installation request for symfony/panther v0.2.0 -> satisfiable by symfony/panther[v0.2.0].

  To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php7/php.ini
    - /etc/php7/conf.d/00_ctype.ini
    - /etc/php7/conf.d/00_curl.ini
    - /etc/php7/conf.d/00_dom.ini
    - /etc/php7/conf.d/00_fileinfo.ini
    - /etc/php7/conf.d/00_gd.ini
    - /etc/php7/conf.d/00_iconv.ini
    - /etc/php7/conf.d/00_intl.ini
    - /etc/php7/conf.d/00_json.ini
    - /etc/php7/conf.d/00_mbstring.ini
    - /etc/php7/conf.d/00_opcache.ini
    - /etc/php7/conf.d/00_openssl.ini
    - /etc/php7/conf.d/00_pdo.ini
    - /etc/php7/conf.d/00_session.ini
    - /etc/php7/conf.d/00_simplexml.ini
    - /etc/php7/conf.d/00_tokenizer.ini
    - /etc/php7/conf.d/00_xml.ini
    - /etc/php7/conf.d/01_mysqlnd.ini
    - /etc/php7/conf.d/01_phar.ini
    - /etc/php7/conf.d/02_mysqli.ini
    - /etc/php7/conf.d/02_pdo_mysql.ini
    - /etc/php7/conf.d/apcu.ini
    - /etc/php7/conf.d/imagick.ini
    - /etc/php7/conf.d/mcrypt.ini
    - /etc/php7/conf.d/symfony.ini
    - /etc/php7/conf.d/xdebug.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
/var/www # ```
@eko
Copy link
Owner

eko commented Nov 12, 2018

Hi,

I understand your point but in this case, we expect that you are starting a project from scratch. You can create an empty symfony directory, run the docker-compose stack and then run docker-compose exec php composer create-project ....

This should work properly.

@nicraMarcin
Copy link
Contributor Author

nicraMarcin commented Nov 12, 2018

Ok, I don't see problem with create from scratch but your suggestion fails

$ docker-compose exec php composer create-project symfony/website-skeleton my-project
Installing symfony/website-skeleton (v4.1.7.7)
  - Installing symfony/website-skeleton (v4.1.7.7): Loading from cache
Created project in my-project
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for facebook/webdriver 1.6.0 -> satisfiable by facebook/webdriver[1.6.0].
    - facebook/webdriver 1.6.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
  Problem 2
    - facebook/webdriver 1.6.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - symfony/panther v0.2.0 requires facebook/webdriver ^1.5 -> satisfiable by facebook/webdriver[1.6.0].
    - Installation request for symfony/panther v0.2.0 -> satisfiable by symfony/panther[v0.2.0].

  To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php7/php.ini
    - /etc/php7/conf.d/00_ctype.ini
    - /etc/php7/conf.d/00_curl.ini
    - /etc/php7/conf.d/00_dom.ini
    - /etc/php7/conf.d/00_fileinfo.ini
    - /etc/php7/conf.d/00_gd.ini
    - /etc/php7/conf.d/00_iconv.ini
    - /etc/php7/conf.d/00_intl.ini
    - /etc/php7/conf.d/00_json.ini
    - /etc/php7/conf.d/00_mbstring.ini
    - /etc/php7/conf.d/00_opcache.ini
    - /etc/php7/conf.d/00_openssl.ini
    - /etc/php7/conf.d/00_pdo.ini
    - /etc/php7/conf.d/00_session.ini
    - /etc/php7/conf.d/00_simplexml.ini
    - /etc/php7/conf.d/00_tokenizer.ini
    - /etc/php7/conf.d/00_xml.ini
    - /etc/php7/conf.d/01_mysqlnd.ini
    - /etc/php7/conf.d/01_phar.ini
    - /etc/php7/conf.d/02_mysqli.ini
    - /etc/php7/conf.d/02_pdo_mysql.ini
    - /etc/php7/conf.d/apcu.ini
    - /etc/php7/conf.d/imagick.ini
    - /etc/php7/conf.d/mcrypt.ini
    - /etc/php7/conf.d/symfony.ini
    - /etc/php7/conf.d/xdebug.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

@eko
Copy link
Owner

eko commented Nov 13, 2018

Hello @nicraMarcin,

facebook/webdriver 1.6.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.

It seems that the php container is just missing the php7-zip PHP extension. You should add it here: https://github.com/eko/docker-symfony/blob/master/php-fpm/Dockerfile

Could you please add it, re-build the php container and try again?

Thank you

@nicraMarcin
Copy link
Contributor Author

It seems that the php container is just missing the php7-zip PHP extension. You should add it here: https://github.com/eko/docker-symfony/blob/master/php-fpm/Dockerfile

Could you please add it, re-build the php container and try again?

Ok, this was this, adding php7-zip solved problem.
Thanks a lot

@eko
Copy link
Owner

eko commented Nov 14, 2018

Great, maybe you could open a PR on this repository to add the missing extension? Elsewhere I will open it on the week-end.

Thank you

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

2 participants