remp2020 / remp

REMP - Reader's engagement and monetization platform. Set of open-source tools for publishers to engage with their audience. Repository is public mirror of our internal private repo.
https://remp2020.com
MIT License
126 stars 39 forks source link

Docker installation - failed: ERROR: Service 'adminer' failed to build : Build failed #138

Closed matejponcak closed 2 years ago

matejponcak commented 2 years ago

When I try to install new clean instance, installation fail.

Steps to reproduce:

git clone https://github.com/remp2020/remp.git
cd ./remp
make docker-build
docker-compose up

Output:

=> ERROR [ 2/14] RUN apt-get update && apt-get install -y g++ build-essential libsasl2-dev libssl-dev python-minimal libzip-dev libicu-dev git wget vim curl less gnupg zlib1g-dev libpng-dev libjpeg-dev libonig-dev     && pecl install xdebug  4.2s
------
 > [ 2/14] RUN apt-get update && apt-get install -y g++ build-essential libsasl2-dev libssl-dev python-minimal libzip-dev libicu-dev git wget vim curl less gnupg zlib1g-dev libpng-dev libjpeg-dev libonig-dev     && pecl install xdebug && docker-php-ext-enable xdebug     && docker-php-ext-configure intl     && docker-php-ext-configure gd --with-jpeg=/usr/include/     && docker-php-ext-install -j$(nproc) pdo_mysql bcmath mbstring iconv zip intl sockets pcntl gd     && apt-get purge         -y --auto-remove         -o APT::AutoRemove::RecommendsImportant=false         g++ build-essential libsasl2-dev libssl-dev python-minimal:
#5 0.428 Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
#5 0.440 Get:2 http://deb.debian.org/debian bullseye InRelease [113 kB]
#5 0.505 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
#5 0.570 Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [36.5 kB]
#5 0.625 Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8178 kB]
#5 1.882 Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2088 B]
#5 2.636 Fetched 8412 kB in 2s (3647 kB/s)
#5 2.636 Reading package lists...
#5 2.996 Reading package lists...
#5 3.349 Building dependency tree...
#5 3.430 Reading state information...
#5 3.443 Package python-minimal is not available, but is referred to by another package.
#5 3.443 This may mean that the package is missing, has been obsoleted, or
#5 3.443 is only available from another source
#5 3.443 However the following packages replace it:
#5 3.443   python-is-python3 python-is-python2 python2-minimal
#5 3.443
#5 3.485 E: Package 'python-minimal' has no installation candidate
------
executor failed running [/bin/sh -c apt-get update && apt-get install -y ${BUILD_DEPS} ${RUN_DEPS}     && pecl install xdebug && docker-php-ext-enable xdebug     && docker-php-ext-configure intl     && docker-php-ext-configure gd --with-jpeg=/usr/include/     && docker-php-ext-install -j$(nproc) pdo_mysql bcmath mbstring iconv zip intl sockets pcntl gd     && apt-get purge         -y --auto-remove         -o APT::AutoRemove::RecommendsImportant=false         ${BUILD_DEPS}]: exit code: 100
ERROR: Service 'adminer' failed to build : Build failed
rootpd commented 2 years ago

Thanks for your report, we'll look into it. Seems like one of the dependencies in the Docker image is not available anymore and we'll need to make an update.

matejponcak commented 2 years ago

You are welcome

When I change python-minimal to suggested python2-minimal, installation succeeded

./Docker/php/Dockerfile : line 3

ENV BUILD_DEPS g++ build-essential libsasl2-dev libssl-dev python2-minimal

You can check if it's appropriate solution

rootpd commented 2 years ago

Thanks a lot for your help. We've removed the dependency completely, looks like it wasn't necessary anymore (added back in 2017).

Fixed via https://github.com/remp2020/remp/commit/150e91e7ca65239a9069674a33f649373feaef66.