Hi guys, we are using `docker/sdk` and want to ins...
# docker
c
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?
h
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:
Copy code
image:
    tag: mydocrepo/php:7.3
or for docker/sdk < 1.15.0
Copy code
image: mydocrepo/php:7.3
Boot docker/sdk and up, or use on CI/CD.
c
Hi Mike, thank you for the info