jobcespedes / docker-compose-moodle

This project quickly builds a local workspace for Moodle (Apache2, PHP-FPM with XDEBUG y Postgres) using containers for each of its main components. The local workspace is built and managed by Docker Compose
Apache License 2.0
52 stars 28 forks source link

docker-compose up -d fails when first run #16

Closed acyment closed 1 year ago

acyment commented 1 year ago

Using Macbook M1 laptop with Ventura OS. First run fails with

=> ERROR [moodledev/postgres:13-es_CR 4/4] COPY postgres/conf/restore_du  0.0s
 => CANCELED [moodledev/apache2:2.4 internal] load metadata for docker.io  0.0s
------
 > [moodledev/postgres:13-es_CR 4/4] COPY postgres/conf/restore_dump.sh /docker-entrypoint-initdb.d/restore_dump.sh:
------
failed to solve: failed to compute cache key: failed to walk /var/lib/docker/tmp/buildkit-mount3058909058/postgres/conf: lstat /var/lib/docker/tmp/buildkit-mount3058909058/postgres/conf: no such file or directory
franco-viotti commented 1 year ago

I have the same issue on Ubuntu 22.04

jobcespedes commented 1 year ago

Please pull latest commits and try again.

acyment commented 1 year ago

Hi @jobcespedes! I just pulled latest commits, tried again and it now failed at this point:

#0 20.56 checking for strings.h... (cached) yes
#0 20.56 checking for inttypes.h... (cached) yes
#0 20.57 checking for stdint.h... (cached) yes
#0 20.58 checking for unistd.h... (cached) yes
#0 20.58 configure: error: Cannot find ldap libraries in /usr/lib/x86_64-linux-gnu.
------
failed to solve: executor failed running [/bin/sh -c apt-get update &&     apt-get install -y --no-install-recommends libxml2-dev zlib1g-dev libpng-dev         libfreetype6-dev libjpeg62-turbo-dev libicu-dev libpspell-dev libpq-dev libldap2-dev libxslt-dev libzip-dev &&     docker-php-ext-configure gd --with-freetype --with-jpeg &&     docker-php-ext-install gd &&     docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu &&     docker-php-ext-install ldap &&     docker-php-ext-install soap zip intl pspell pgsql xsl exif &&     docker-php-ext-configure opcache --enable-opcache && docker-php-ext-install opcache &&     pecl install xdebug xmlrpc-beta]: exit code: 1
jobcespedes commented 1 year ago

Again, pull the new commit from master and try one more time.

acyment commented 1 year ago

It failed, but apparently for a different reason (will open new issue)