mammoth-autumn-37948
10/23/2020, 12:43 PMoci8 to allow a connection to an oracle db...
In my deploy.dev.yml file i just modified the image as following:
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:
=> 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!!!high-pencil-62400
10/24/2020, 6:53 AMenabled-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:
Place a single Dockerfile, like in the example below.
```Dockerfile
FROM spryker/php:7.3 as mycustomimage
# Install extensions here
```
- 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.```