Install additional aspell dicts specified with ROUNDCUBEMAIL_ASPELL_DICTS on container start.
Introduce ROUNDCUBEMAIL_SPELLCHECK_URI env var to use remote spell check API.
`ROUNDCUBEMAIL_UPLOAD_MAX_FILESIZE` - File upload size limit; defaults to `5M`
+`ROUNDCUBEMAIL_SPELLCHECK_URI` - Fully qualified URL to a Google XML spell check API like [google-spell-pspell](https://github.com/roundcube/google-spell-pspell)
+
+`ROUNDCUBEMAIL_ASPELL_DICTS` - List of aspell dictionaries to install for spell checking (comma-separated, e.g. `de,fr,pl`).
+
By default, the image will use a local SQLite database for storing user account metadata.
It'll be created inside the `/var/roundcube/db` directory and can be backed up from there. Please note that
this option should not be used for production environments.
libpq-dev \
libsqlite3-dev \
libzip-dev \
+ libpspell-dev \
+ libonig-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
pdo_pgsql \
pdo_sqlite \
zip \
+ pspell \
; \
pecl install imagick; \
docker-php-ext-enable imagick opcache; \
\
apt-get update; \
apt-get install -y --no-install-recommends \
+ aspell \
+ aspell-en \
rsync \
; \
rm -rf /var/lib/apt/lists/*
: "${ROUNDCUBEMAIL_SMTP_SERVER:=localhost}"
: "${ROUNDCUBEMAIL_SMTP_PORT:=587}"
: "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}"
- : "${ROUNDCUBEMAIL_SKIN:=larry}"
+ : "${ROUNDCUBEMAIL_SKIN:=elastic}"
: "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}"
if [ ! -e config/config.inc.php ]; then
\$config['log_driver'] = 'stdout';
\$config['zipdownload_selection'] = true;
\$config['des_key'] = '${GENERATED_DES_KEY}';
+ \$config['enable_spellcheck'] = true;
+ \$config['spellcheck_engine'] = 'pspell';
include(__DIR__ . '/config.docker.inc.php');
" > config/config.inc.php
echo "\$config['des_key'] = getenv('ROUNDCUBEMAIL_DES_KEY');" >> config/config.docker.inc.php
fi
+ if [ ! -z "${ROUNDCUBEMAIL_SPELLCHECK_URI}"]; then
+ echo "\$config['spellcheck_engine'] = 'googie';" >> config/config.docker.inc.php
+ echo "\$config['spellcheck_uri'] = '${ROUNDCUBEMAIL_SPELLCHECK_URI}';" >> config/config.docker.inc.php
+ fi
+
# include custom config files
for fn in `ls /var/roundcube/config/*.php 2>/dev/null || true`; do
echo "include('$fn');" >> config/config.docker.inc.php
echo "${ROUNDCUBEMAIL_LOCALE}" > /etc/locale.gen
/usr/sbin/locale-gen
fi
+
+ if [ ! -z "${ROUNDCUBEMAIL_ASPELL_DICTS}" ]; then
+ ASPELL_PACKAGES=`echo -n "aspell-${ROUNDCUBEMAIL_ASPELL_DICTS}" | sed -E "s/[, ]+/ aspell-/g"`
+ which apt-get && apt-get install -y $ASPELL_PACKAGES
+ which apk && apk add --no-cache $ASPELL_PACKAGES
+ fi
+
fi
exec "$@"
bash \
coreutils \
rsync \
- tzdata
+ tzdata \
+ aspell \
+ aspell-en
RUN set -ex; \
\
openldap-dev \
postgresql-dev \
sqlite-dev \
+ aspell-dev \
; \
\
docker-php-ext-configure gd; \
pdo_pgsql \
pdo_sqlite \
zip \
+ pspell \
; \
pecl install imagick; \
docker-php-ext-enable imagick opcache; \
: "${ROUNDCUBEMAIL_SMTP_SERVER:=localhost}"
: "${ROUNDCUBEMAIL_SMTP_PORT:=587}"
: "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}"
- : "${ROUNDCUBEMAIL_SKIN:=larry}"
+ : "${ROUNDCUBEMAIL_SKIN:=elastic}"
: "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}"
if [ ! -e config/config.inc.php ]; then
\$config['log_driver'] = 'stdout';
\$config['zipdownload_selection'] = true;
\$config['des_key'] = '${GENERATED_DES_KEY}';
+ \$config['enable_spellcheck'] = true;
+ \$config['spellcheck_engine'] = 'pspell';
include(__DIR__ . '/config.docker.inc.php');
" > config/config.inc.php
echo "\$config['des_key'] = getenv('ROUNDCUBEMAIL_DES_KEY');" >> config/config.docker.inc.php
fi
+ if [ ! -z "${ROUNDCUBEMAIL_SPELLCHECK_URI}"]; then
+ echo "\$config['spellcheck_engine'] = 'googie';" >> config/config.docker.inc.php
+ echo "\$config['spellcheck_uri'] = '${ROUNDCUBEMAIL_SPELLCHECK_URI}';" >> config/config.docker.inc.php
+ fi
+
# include custom config files
for fn in `ls /var/roundcube/config/*.php 2>/dev/null || true`; do
echo "include('$fn');" >> config/config.docker.inc.php
echo "${ROUNDCUBEMAIL_LOCALE}" > /etc/locale.gen
/usr/sbin/locale-gen
fi
+
+ if [ ! -z "${ROUNDCUBEMAIL_ASPELL_DICTS}" ]; then
+ ASPELL_PACKAGES=`echo -n "aspell-${ROUNDCUBEMAIL_ASPELL_DICTS}" | sed -E "s/[, ]+/ aspell-/g"`
+ which apt-get && apt-get install -y $ASPELL_PACKAGES
+ which apk && apk add --no-cache $ASPELL_PACKAGES
+ fi
+
fi
exec "$@"
libpq-dev \
libsqlite3-dev \
libzip-dev \
+ libpspell-dev \
+ libonig-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
pdo_pgsql \
pdo_sqlite \
zip \
+ pspell \
; \
pecl install imagick; \
docker-php-ext-enable imagick opcache; \
\
apt-get update; \
apt-get install -y --no-install-recommends \
+ aspell \
+ aspell-en \
rsync \
; \
rm -rf /var/lib/apt/lists/*
: "${ROUNDCUBEMAIL_SMTP_SERVER:=localhost}"
: "${ROUNDCUBEMAIL_SMTP_PORT:=587}"
: "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}"
- : "${ROUNDCUBEMAIL_SKIN:=larry}"
+ : "${ROUNDCUBEMAIL_SKIN:=elastic}"
: "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}"
if [ ! -e config/config.inc.php ]; then
\$config['log_driver'] = 'stdout';
\$config['zipdownload_selection'] = true;
\$config['des_key'] = '${GENERATED_DES_KEY}';
+ \$config['enable_spellcheck'] = true;
+ \$config['spellcheck_engine'] = 'pspell';
include(__DIR__ . '/config.docker.inc.php');
" > config/config.inc.php
echo "\$config['des_key'] = getenv('ROUNDCUBEMAIL_DES_KEY');" >> config/config.docker.inc.php
fi
+ if [ ! -z "${ROUNDCUBEMAIL_SPELLCHECK_URI}"]; then
+ echo "\$config['spellcheck_engine'] = 'googie';" >> config/config.docker.inc.php
+ echo "\$config['spellcheck_uri'] = '${ROUNDCUBEMAIL_SPELLCHECK_URI}';" >> config/config.docker.inc.php
+ fi
+
# include custom config files
for fn in `ls /var/roundcube/config/*.php 2>/dev/null || true`; do
echo "include('$fn');" >> config/config.docker.inc.php
echo "${ROUNDCUBEMAIL_LOCALE}" > /etc/locale.gen
/usr/sbin/locale-gen
fi
+
+ if [ ! -z "${ROUNDCUBEMAIL_ASPELL_DICTS}" ]; then
+ ASPELL_PACKAGES=`echo -n "aspell-${ROUNDCUBEMAIL_ASPELL_DICTS}" | sed -E "s/[, ]+/ aspell-/g"`
+ which apt-get && apt-get install -y $ASPELL_PACKAGES
+ which apk && apk add --no-cache $ASPELL_PACKAGES
+ fi
+
fi
exec "$@"
bash \
coreutils \
rsync \
- tzdata
+ tzdata \
+ aspell \
+ aspell-en
RUN set -ex; \
\
openldap-dev \
postgresql-dev \
sqlite-dev \
+ aspell-dev \
; \
\
docker-php-ext-configure gd; \
pdo_pgsql \
pdo_sqlite \
zip \
+ pspell \
; \
pecl install imagick; \
docker-php-ext-enable imagick opcache; \
libpq-dev \
libsqlite3-dev \
libzip-dev \
+ libpspell-dev \
+ libonig-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
pdo_pgsql \
pdo_sqlite \
zip \
+ pspell \
; \
pecl install imagick; \
docker-php-ext-enable imagick opcache; \
\
apt-get update; \
apt-get install -y --no-install-recommends \
+ aspell \
+ aspell-en \
rsync \
; \
rm -rf /var/lib/apt/lists/*
: "${ROUNDCUBEMAIL_SMTP_SERVER:=localhost}"
: "${ROUNDCUBEMAIL_SMTP_PORT:=587}"
: "${ROUNDCUBEMAIL_PLUGINS:=archive,zipdownload}"
- : "${ROUNDCUBEMAIL_SKIN:=larry}"
+ : "${ROUNDCUBEMAIL_SKIN:=elastic}"
: "${ROUNDCUBEMAIL_TEMP_DIR:=/tmp/roundcube-temp}"
if [ ! -e config/config.inc.php ]; then
\$config['log_driver'] = 'stdout';
\$config['zipdownload_selection'] = true;
\$config['des_key'] = '${GENERATED_DES_KEY}';
+ \$config['enable_spellcheck'] = true;
+ \$config['spellcheck_engine'] = 'pspell';
include(__DIR__ . '/config.docker.inc.php');
" > config/config.inc.php
echo "\$config['des_key'] = getenv('ROUNDCUBEMAIL_DES_KEY');" >> config/config.docker.inc.php
fi
+ if [ ! -z "${ROUNDCUBEMAIL_SPELLCHECK_URI}"]; then
+ echo "\$config['spellcheck_engine'] = 'googie';" >> config/config.docker.inc.php
+ echo "\$config['spellcheck_uri'] = '${ROUNDCUBEMAIL_SPELLCHECK_URI}';" >> config/config.docker.inc.php
+ fi
+
# include custom config files
for fn in `ls /var/roundcube/config/*.php 2>/dev/null || true`; do
echo "include('$fn');" >> config/config.docker.inc.php
echo "${ROUNDCUBEMAIL_LOCALE}" > /etc/locale.gen
/usr/sbin/locale-gen
fi
+
+ if [ ! -z "${ROUNDCUBEMAIL_ASPELL_DICTS}" ]; then
+ ASPELL_PACKAGES=`echo -n "aspell-${ROUNDCUBEMAIL_ASPELL_DICTS}" | sed -E "s/[, ]+/ aspell-/g"`
+ which apt-get && apt-get install -y $ASPELL_PACKAGES
+ which apk && apk add --no-cache $ASPELL_PACKAGES
+ fi
+
fi
exec "$@"