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..

Hi everyone, is there any way to inject a new module/dependency into the docker setup through yaml c

Options
U0121G9LVNC
U0121G9LVNC Posts: 27 🧑🏻‍🚀 - Cadet

Hi everyone,
is there any way to inject a new module/dependency into the docker setup through yaml config or something? We are trying to install pcov in our spryker containers to speed up code coverage generation for codeception/phpunit
Thanks!

Comments

  • U013EK8RD7A
    U013EK8RD7A Posts: 127 🧑🏻‍🚀 - Cadet
    Options

    Probably the only way is to build Your own Docker image based on Spryker

  • U0121G9LVNC
    U0121G9LVNC Posts: 27 🧑🏻‍🚀 - Cadet
    Options

    @ULYHPR789 as you are the expert on most issues: do you know of any other way? 🙂

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

    You should go with custom base image if you need an extension.

    1. Create Dockerfile
    FROM spryker/php:7.4-alpine13 # Or the base image you already use
    
    # here is the code to install extension
    RUN ...
    
    1. Build the image using docker build
    2. Push the image into docker hub in your own repository
    3. Change the base image in all your deploy.ymls.
  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    At the moment no other way

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

    Or you can fork and extend docker/sdk, however you will need to maintain updates

  • U0121G9LVNC
    U0121G9LVNC Posts: 27 🧑🏻‍🚀 - Cadet
    Options

    Thank you very much Mike for the detailed description!