Giter Site home page Giter Site logo

docker's Introduction

Sylius is an Open Source eCommerce framework on top of Symfony.

The highest quality of code, strong testing culture, built-in Agile (BDD) workflow and exceptional flexibility make it the best solution for applications tailored to your business requirements. Powerful REST API allows for easy integrations and creating unique customer experience on any device.

We're using full-stack Behavior-Driven-Development, with phpspec and Behat.

Enjoy being an eCommerce Developer again!

⚙️ Installation

Install Sylius with Composer (see requirements details).

Follow the Getting started with Sylius tutorial!

📖 Documentation

Documentation is available at docs.sylius.com.

➕ Sylius Plus

Sylius Plus offers modular features like OnePageCheckout and a B2B suite, alongside advanced capabilities such as multi-store management, partial order fulfillment, smooth returns handling, a loyalty system and multi-source inventory. Pick and choose the modules you need to supercharge your eCommerce projects effortlessly.

🤝 Community

Get Sylius support on Slack or Stack Overflow or get professional SLA-backed support and Project Success Assistance with Sylius Plus license! Learn more.

Stay updated by following our Twitter and Facebook.

Would like to help us and build the most developer-friendly eCommerce framework? Start from reading our Contributing Guide!

👮 Security issues

If you think that you have found a security issue in Sylius, please do not use the issue tracker and do not post it publicly. Instead, all security issues must be sent to [email protected].

📦 Plugins and Extensions: Sylius Store

You can find Sylius plugins on our Sylius Store which is a Marketplace with Sylius extensions.

Or search for packages marked as sylius-plugin on Packagist.

📃 License

Sylius is completely free and released under the MIT License.

✍️ Authors

Sylius was originally created by Paweł Jędrzejewski.

Kudos to all Sylius contributors 🙏

... and others!

See the full list of contributors from our awesome community.

docker's People

Contributors

castler avatar lchrusciel avatar pamil avatar pjedrzejewski avatar tabsl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker's Issues

Add support for BDD testing

I assume many have issues getting Behat including Selenium setup properly on their systems locally or on a Vagrant/Docker environment. It would be great to have a development Docker setup which runs similar tasks as being done on Travis (phpunit, phpspec, Behat, etc.) to allow smoother start of developing. When I started I found it rather hard to get it working. Would be great to have such functionality.

Make port configurable for MySQL (other ports too?)

ERROR: for mysql Cannot start service mysql: driver failed programming external connectivity on endpoint docker_mysql_1 (ad2d3430d8c5c83aba9633c20b10c4ebb7df8090bf6828b86072401e67c08173): Error starting userland proxy: Bind for 127.0.0.1:3306 failed: port is already allocated
ERROR: Encountered errors while bringing up the project."

Make up fails due to usermod and AS_UID

Step 7/15 : RUN usermod -u ${AS_UID} www-data
 ---> Running in e96f1ad881f5
usermod: UID '0' already exists
ERROR: Service 'sylius' failed to build: The command '/bin/sh -c usermod -u ${AS_UID} www-data' returned a non-zero code: 4

I use a standard installation.

make up fails with post-install-cmd and parameters.yml.dist

Build fails with:

> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Creating the "app/config/parameters.yml" file
Script Incenteev\ParameterHandler\ScriptHandler::buildParameters handling the post-install-cmd event terminated with an exception


  [InvalidArgumentException]
  The top-level key parameters is missing.


run-script [--timeout TIMEOUT] [--dev] [--no-dev] [-l|--list] [--] [<script>] [<args>]...

ERROR: Service 'sylius' failed to build: The command '/bin/sh -c composer create-project                sylius/sylius-standard          ${SYLIUS_DIR}      ${SY
LIUS_VERSION}        && chmod +x sylius/bin/console  && cd sylius    && rm -f app/config/parameters.yml      && curl -o app/config/parameters.yml.dist https://
raw.githubusercontent.com/Sylius/Sylius-Standard/master/app/config/parameters.yml.dist    && composer run-script post-install-cmd' returned a non-zero code: 1
make: *** [Makefile:29: up] Error 1

Commenting two lines in the Dockerfile as in below git diff was a workaround:

diff --git a/Dockerfile b/Dockerfile
index f129e84..9207928 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -23,8 +23,8 @@ RUN composer create-project \
        && chmod +x sylius/bin/console \
        # Patch Sylius Standard from master (required for version < 1.1) \
        && cd sylius \
-       && rm -f app/config/parameters.yml \
-       && curl -o app/config/parameters.yml.dist https://raw.githubusercontent.com/Sylius/Sylius-Standard/master/app/config/parameters.yml.dist \
+#      && rm -f app/config/parameters.yml \
+#      && curl -o app/config/parameters.yml.dist https://raw.githubusercontent.com/Sylius/Sylius-Standard/master/app/config/parameters.yml.dist \
        && composer run-script post-install-cmd
 USER root

make command not found

I'm running Docker (Compose 1.21.1) in Windows 10 Pro, and "make" command doesn't seam to work:

make help
make : The term 'make' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
+CategoryInfo : ObjectNotFound: (make:String) [], CommandNotFoundException
+FullyQualifiedErrorId : CommandNotFoundException

Any help guys? Thanks!

Images error 500

New to sylius the following error I can't get past, if I can't get images working I'm considering oscar

An example url
http://localhost:8000/app_dev.php/media/cache/resolve/sylius_shop_product_thumbnail/cb/94/d924f0a0093e349d5d697a728431.jpeg

500 Internal Server Error

Any ideas or pointers to why the images are not loading, following the URL gives

Unable to create image for path "a7/d9/b19a5df25abd2eebdafa2f1a0560.jpeg" and filter "sylius_shop_product_large_thumbnail". Message was "Unable to open image /var/www/sylius/web/media/image/a7/d9/b19a5df25abd2eebdafa2f1a0560.jpeg"

Do I need to set some liip settings in config?

[Documentation]

In README.md file,
this line docker exec -it $(docker-compose ps -q php) bash
can be simplified by docker-compose exec php bash

Assets folder empty

Assets folder remain empty after install:

> make console CMD="assets:install web --symlink --relative"
docker exec \
        -ti \
        -u www-data \
        sylius-standard-app \
        sylius/bin/console assets:install web --symlink --relative

 Trying to install assets as relative symbolic links.

 --- ------------------------------ ------------------
      Bundle                         Method / Error
 --- ------------------------------ ------------------
  ✔   SonataCoreBundle               relative symlink
  ✔   WhiteOctoberPagerfantaBundle   relative symlink
 --- ------------------------------ ------------------


 [OK] All assets were successfully installed.

Then:

> make console CMD="sylius:theme:assets:install web --symlink --relative"
docker exec \
        -ti \
        -u www-data \
        sylius-standard-app \
        sylius/bin/console sylius:theme:assets:install web --symlink --relative
Trying to install assets as symbolic links.

But then:

> docker exec -ti -u www-data sylius-standard-app \
                        ls -l /var/www/sylius/web/assets/
total 0

Sylius project data in "host"

Same that #18

I'm adding docker-compose.local.yml to have the project data outside the container like this:

version: '2.1'

services:
   sylius:
     volumes:
       - ./sylius:/var/www/sylius

But, this does not work. I throw the error: File not found.

I'm only want:

###### docker-compose.yml

version: '3.1'

services:

  wordpress:
    image: wordpress
    restart: always
    ports:
      - 8080:80
    environment:
      WORDPRESS_DB_PASSWORD: example

  mysql:
    image: mysql:5.7
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example

###### docker-compose.local.yml

version: '3.1'

services:

  wordpress:
    volumes:
      - ./app:/var/www/html

`sylius:install` command fails

After
make console CMD=sylius:install
I got

Loading sample data for environment dev.
Warning! This action will erase your database.
Continue? (y/N) y
 0/1 [░                           ]   0%

  [Doctrine\DBAL\Exception\InvalidFieldNameException]
  An exception occurred while executing 'INSERT INTO sylius_order_item (quantity, unit_price, units_total, adjust
  ments_total, total, is_immutable, order_id, product_name, variant_name, variant_id) VALUES (?, ?, ?, ?, ?, ?, ?
  , ?, ?, ?)' with params [2, 594, 60, 0, 60, 0, 1, "T-Shirt \"quia\"", "qui", 295]:
  SQLSTATE[42S22]: Column not found: 1054 Unknown column 'product_name' in 'field list'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.