Running database initialization script for ident_switch ERROR: No such file or directory

Issue #87 new
mcnesium created an issue

Installing this plugin with composer fails due to missing database connection. Here is my example Dockerfile:

FROM roundcube/roundcubemail:latest

# copy composer binary
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer

# configure composer
RUN mv /usr/src/roundcubemail/composer.json-dist /usr/src/roundcubemail/composer.json

# install ident_switch
RUN \
    composer \
        --working-dir=/usr/src/roundcubemail \
        require \
            boressoft/ident_switch \
    ;

Trying to build this results in the following error:

Creating package config file
Running database initialization script for ident_switch
ERROR: SQLSTATE[HY000] [2002] No such file or directory
ERROR: Failed to connect to database
The command '/bin/sh -c composer         --working-dir=/usr/src/roundcubemail         require             boressoft/ident_switch     ;' returned a non-zero code: 1

What did I miss here? Or does the package lack something?

Comments (0)

  1. Log in to comment