Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Is build process always using `docker` environment and hence `config_default-docker.php` or can it

Options
USZ0XG6SK
USZ0XG6SK Posts: 111 🧑🏻‍🚀 - Cadet

Is build process always using docker environment and hence config_default-docker.php or can it be changed somehow?

Comments

  • USZ0XG6SK
    USZ0XG6SK Posts: 111 🧑🏻‍🚀 - Cadet
    Options

    example from build logs:

    #22 name: "[application-production-codebase 8/9] RUN vendor/bin/install -r docker -s build -s build-production -vvv"
    

    in deploy.yml we have

    environment: production
    
  • @ULYHPR789 is unfortunately not available

  • let me take some guesses here 😊

  • thee install -r docker means that it is installing the system following the recipe in config/install/docker.yml

  • let’s see where we get that from

  • USZ0XG6SK
    USZ0XG6SK Posts: 111 🧑🏻‍🚀 - Cadet
    Options

    can we change it to use another recipe or is it fixed?

  • it is coming from SPRYKER_PIPELINE

  • looking into the Dockerfiles in docker/deployment/default/images i see that it uses install -r ${SPRYKER_PIPELINE}

  • currently trying to find it

  • (slack has network issues, some messages might be delayed at the moment)

  • USZ0XG6SK
    USZ0XG6SK Posts: 111 🧑🏻‍🚀 - Cadet
    Options

    ok, looks like SPRYKER_PIPELINE defaults to docker when not set so setting it to some value should do the trick

  • so, you know where to pick up from here? 🙂

  • USZ0XG6SK
    USZ0XG6SK Posts: 111 🧑🏻‍🚀 - Cadet
    Options

    delegate 😄

  • 😂

  • USZ0XG6SK
    USZ0XG6SK Posts: 111 🧑🏻‍🚀 - Cadet
    Options

    But yeah, i think i know how to proceed, thanks for pointing it out.

  • 👍

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    deploy.yml:

    environment: docker
    

    This maps value to APPLICATION_ENV env variable

    pipeline: docker2
    

    Will use config/install/docker2.yml instruction file.

  • USZ0XG6SK
    USZ0XG6SK Posts: 111 🧑🏻‍🚀 - Cadet
    edited October 2020
    Options

    so basically i am missing:

    pipeline: environment
    

    inside the deploy.yml ?

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    If you want to use config/install/environment.yml then yes. Just add it in deploy.yml root

  • Any docs about that? 🙈