Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

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

@aario

Description

@aario

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions