Hi Guys, i need to install local on my docker an e...
# docker
m
Hi Guys, i need to install local on my docker an extra php extension...
oci8
to allow a connection to an oracle db... In my deploy.dev.yml file i just modified the image as following:
Copy code
image:
    tag: spryker/php:7.4
    php:
      enabled-extensions:
        - oci8
Now when i run
docker/sdk boostrap deploy.dev.yml
command i get the following error:
Copy code
=> ERROR [11/14] RUN mv /usr/local/etc/php/disabled/oci8.ini /usr/local/etc/php/conf.d/90-oci8.ini                                                                                              0.4s
------                                                                                                                                                                                                
 > [11/14] RUN mv /usr/local/etc/php/disabled/oci8.ini /usr/local/etc/php/conf.d/90-oci8.ini:
#17 0.341 mv: cannot stat '/usr/local/etc/php/disabled/oci8.ini': No such file or directory
------
failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = failed to build LLB: executor failed running [/bin/sh -c mv /usr/local/etc/php/disabled/oci8.ini /usr/local/etc/php/conf.d/90-oci8.ini]: runc did not terminate sucessfully
What i did wrong? Thank u in advance!!!
h
Hello Giovanni,
Copy code
enabled-extensions:
This parameter works only with the list of disabled extensions here: https://github.com/spryker/docker-php If you want to install an extension you need to extend the entire PHP base image with the extension you need. Something like this:
Copy code
Place a single Dockerfile, like in the example below.

```Dockerfile
FROM spryker/php:7.3 as mycustomimage

# Install extensions here
```
Copy code
- 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
- Add instructions to install everything you need. Try to not impact on base functionality.
- Setup account in docker hub, attach the repo and set up building rules, tag and so on. E.g. mydocrepo/php:7.3.
- Push or manually trigger the build. At the point you should have public docker image available.
- Change deploy.yml in your Spryker project repo:

```yaml
image:
    tag: mydocrepo/php:7.3
Boot docker/sdk and up, or use on CI/CD.```