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 guys, we are using `docker/sdk` and want to install some additional server libraries (for pdf ma

USZ0XG6SK
USZ0XG6SK Posts: 111 🧑🏻‍🚀 - Cadet

Hi guys, we are using docker/sdk and want to install some additional server libraries (for pdf manipulation for example). Is this somehow possible or do we need to fork the docker/sdk repository and modify the Dockerfiles to install the needed libraries and then use our forked repo to build the images?

Comments

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

    Hello Neven,

    No need to fork anything.

    1. Create your own repo and place there the only one Dockerfile that is based on one of the images: spryker/php:* . e,g. FROM spryker/php:7.3 as mycustomimage
    2. Add instructions to install everything you need. Try to not impact on base functionality.
    3. Setup account in docker hub, attach the repo and set up building rules, tag and so on. E.g. mydocrepo/php:7.3.
    4. Push or manually trigger the build. At the point you should have public docker image available.
    5. Change deploy.yml in your Spryker project repo:
    image:
        tag: mydocrepo/php:7.3
    

    or for docker/sdk < 1.15.0

    image: mydocrepo/php:7.3
    

    Boot docker/sdk and up, or use on CI/CD.

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

    Hi Mike, thank you for the info