akaunting / docker

Docker Image for Akaunting
https://github.com/akaunting/akaunting
GNU General Public License v3.0
185 stars 86 forks source link

Request: Is it possible to add imap php extension in the docker.io/akaunting/akaunting image? #50

Closed desplega closed 3 years ago

desplega commented 3 years ago

When I list the php extensions installed in docker.io/akaunting/akaunting image I get: $ php -m [PHP Modules] bcmath Core ctype curl date dom fileinfo filter ftp gd hash iconv intl json libxml mbstring mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline Reflection session SimpleXML sodium SPL sqlite3 standard tokenizer xml xmlreader xmlwriter zip zlib

In order to develop a feature in one App (Helpdesk) I would need the docker.io/akaunting/akaunting image to include the php imap extension. Is that possible?

MohammedAl-Mahdawi commented 3 years ago

Hi!

Thank you for your request!

It is not an essential extension to run Akaunting, we try to make the images as efficient and lightweight as possible, however, it is an image so for any special use case like yours you can add the missing features to it.

For example to add this imap PHP extension simply create a Dockerfile like:

FROM akaunting/akaunting

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 \
    && docker-php-ext-install imap
desplega commented 3 years ago

Thanks!

MohammedAl-Mahdawi commented 3 years ago

You are welcome!