Hi all, I am trying to setup existing project in s...
# docker
h
Hi all, I am trying to setup existing project in spryker. During
docker/sdk up
I got following error while installing dependencies from composer:
Copy code
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested PHP extension ext-xsl * is missing from your system. Install or enable PHP's xsl extension.
Any suggestion how to enable this extension inside docker ? Thanks
h
The only way is to prepare your own docker image base on spyker/php one, install extension here, publish somewhere (e.g. docker hub) and use tag in your deploy.yml. E.g. Dockerfile
Copy code
FROM spryker/php:7.3-alpine3.12

# Install extension here
RUN ...
Build and push docker image. Use in your all deploy.yamls
Copy code
image:
  tag: mycompany/myimage:7.3
Or reconsider using xsl extension. 🙂
h
I tried with Dockerfile. Added following lines but not working, it does not show even in console that is installing xsl extension
Copy code
FROM spryker/php:7.3-alpine3.12
RUN docker-php-ext-install xsl
h
What command do you use to build the image?
h
docker/sdk bootstrap deploy.dev.yml
h
No. No. It won’t work that way.
h
I'm using this image:
image: spryker/php:7.2-alpine3.10
h
it should be
Copy code
docker build -f path-to-your-docker-file -t myphpimage path-to-folder-with-your-docker-file
And then after it is public -
image: mycompany/php:7.3 # your public tag
h
So the only way is to build image, install extensions, publish somewere and then use it
h
Yes
h
Thanks 👍