Skip to content

php apache-stretch images fail installing couchbase #664

@esg-llachance

Description

@esg-llachance

A recent release of the php apache-stretch images (confirmed in both php:5.6-apache and php:7.2-apache) fail during couchbase installation with the following error

dpkg: error processing archive couchbase-release-1.0-2-amd64.deb (--install):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 couchbase-release-1.0-2-amd64.deb

Some googling mentioned that this is due to an issue with lsb-release. I've also noticed that building with php-apache-jessie images will install dependencies from an alternate source, and is successful.

Example dockerfile

FROM php:5.6-apache

WORKDIR /tmp

RUN apt-get update && apt-get -y install lsb-release libmcrypt-dev

RUN apt-get -y install vim

COPY couchbase-release-1.0-2-amd64.deb /tmp
RUN dpkg -i couchbase-release-1.0-2-amd64.deb

# Will install or upgrade packages
RUN apt-get update && apt-get -y install libcouchbase-dev build-essential php5-dev
RUN pecl install couchbase-2.2.3
RUN docker-php-ext-enable couchbase

RUN docker-php-ext-install mcrypt pdo pdo_mysql mysql mysqli opcache
RUN pecl install apcu-4.0.10 && docker-php-ext-enable apcu
RUN pecl install xdebug-2.5.5
RUN pecl install memcache

RUN a2enmod rewrite

COPY php.ini /usr/local/etc/php/

WORKDIR /var/www/html

EXPOSE 80

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions