项目作者: nietzscheson

项目描述 :
Docker environment for Sylius project
高级语言: Dockerfile
项目地址: git://github.com/nietzscheson/docker4sylius.git
创建时间: 2018-07-18T22:41:13Z
项目社区:https://github.com/nietzscheson/docker4sylius

开源协议:MIT License

下载




Docker environment for Sylius Project

Build Status
Build Status

For more information on how Sylius works, please read all the documentation

Installation

  1. Clone docker4sylius repository

    1. $ git clone git@github.com:nietzscheson/docker4sylius.git
  2. Clone Sylius-Standard repository

    1. $ git clone git@github.com:Sylius/Sylius-Standard.git sylius
  3. Run Docker’s containers

    1. $ docker-compose up --build -d
  4. Install Sylius vendors

    1. $ docker-compose run --rm php composer install
  5. Install Sylius

    1. $ docker-compose run --rm php bin/console sylius:install
  6. Install and build assets vendors

    1. $ docker-compose run --rm node yarn install
    1. $ docker-compose run --rm node yarn build

That’s all. Try and fun!!!

This results in the following running containers:

  1. $ docker-compose ps
  2. Name Command State Ports
  3. -------------------------------------------------------------------------------------------------------------
  4. docker4sylius_db_1 docker-entrypoint.sh mysqld Up 3306/tcp
  5. docker4sylius_nginx_1 nginx -g daemon off; Up 80/tcp
  6. docker4sylius_node_1 node Exit 0
  7. docker4sylius_php_1 docker-php-entrypoint php-fpm Up 9000/tcp
  8. docker4sylius_se_1 /opt/bin/entry_point.sh Up 0.0.0.0:4444->4444/tcp
  9. docker4sylius_traefik_1 /traefik --api --docker Up 0.0.0.0:80->80/tcp, 0.0.0.0:8080->8080/tcp
  10. phpmyadmin /run.sh supervisord -n Up 0.0.0.0:81->80/tcp, 9000/tcp
  11. -----------

Testing

Inside the standard Sylius modify the behat.yml.dist adding the following:

  1. default:
  2. extensions:
  3. Behat\MinkExtension:
  4. base_url: "http://nginx/app_test.php"
  5. sessions:
  6. selenium2:
  7. selenium2:
  8. wd_host: http://selenium:4444/wd/hub

And run Behat:

  1. $ docker-compose run --rm php bin/behat

License

This bundle is published under the MIT License

Contributing

First of all, thank you for contributing ♥
If you find any typo/misconfiguration/… please send me a PR or open an issue. You can also ping me on twitter.
Also, while creating your Pull Request on GitHub, please write a description which gives the context and/or explains why you are creating it.