I need to create a modified image from the codeception/codeception docker image.
Basically I need pdo_mysql and imap php extensions installed, together with this codeception addon (https://github.com/AhmedSamy/codeception-smtp-mail).
I managed to install pdomysql and imap, but not the codeception addon.
This is how my Dockerfile looks like:
RUN apt-get update && \
apt-get install -y libc-client-dev libkrb5-dev && \
rm -r /var/lib/apt/lists/*
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
RUN composer require ahmedsamy/codeception-smtp-mail
Here's the last part of the output from the build, that concerns the installation of the codeception-smtp-mail addon:
Step 5/6 : RUN composer require ahmedsamy/codeception-smtp-mail
---> Running in 1df600e938b0
Using version ^0.6.0 for ahmedsamy/codeception-smtp-mail
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Installing php-imap/php-imap (2.0.8) Loading from cache
- Installing ahmedsamy/codeception-smtp-mail (v0.6) Loading from cache
Writing lock file
Generating autoload files
Judging from the
composer.json has been updated line that it was successfully required to the right place, but when I try to run codecept build from that container by executing
docker-compose run --rm codecept build I get:
Module Smtp could not be found and loaded
Any help will be greatly appreciated.