Docker Build fails
Closed this issue · 0 comments
laceysanderson commented
The docker build is currently failing for some reason...
docker build --tag=tripalproject/tripaldocker:drupal9.4.x-dev --build-arg drupalversion='9.4.x-dev' ./
[+] Building 246.4s (24/30)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 199B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/php:8.1-apache-bullseye 0.8s
=> [internal] load build context 0.1s
=> => transferring context: 225.42kB 0.0s
=> CACHED [ 1/26] FROM docker.io/library/php:8.1-apache-bullseye@sha256:37f1f4545f9f8845f5d6dbc53d3f36a72d745d14ea3c96be8936c575b0f720e8 0.0s
=> [ 2/26] COPY . /app 0.1s
=> [ 3/26] RUN chmod -R +x /app && apt-get update 1> ~/aptget.update.log && apt-get install git unzip zip wget gnupg2 supervisor vim --yes -qq 1> ~/aptget.extras.log 12.6s
=> [ 4/26] RUN mkdir -p /usr/share/man/man1 && mkdir -p /usr/share/man/man7 0.2s
=> [ 5/26] RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-13 postgresql-client-13 postgresql-contrib-13 14.2s
=> [ 6/26] RUN /etc/init.d/postgresql start && psql --command "CREATE USER docker WITH SUPERUSER PASSWORD 'docker';" && createdb -O docker docker && psql --command="CREATE USER drupaladmin WIT 3.3s
=> [ 7/26] RUN mv /app/tripaldocker/default_files/postgresql/pg_hba.conf /etc/postgresql/13/main/pg_hba.conf 0.2s
=> [ 8/26] RUN echo "listen_addresses='*'" >> /etc/postgresql/13/main/postgresql.conf && echo "max_locks_per_transaction = 1024" >> /etc/postgresql/13/main/postgresql.conf 0.2s
=> [ 9/26] RUN mv "/usr/local/etc/php/php.ini-development" "/usr/local/etc/php/php.ini" 0.2s
=> [10/26] RUN pecl install xdebug-3.1.5 && docker-php-ext-enable xdebug && cat /app/tripaldocker/default_files/xdebug/xdebug-coverage.ini >> /usr/local/etc/php/php.ini && echo "error_reporting= 12.6s
=> [11/26] RUN set -eux; if command -v a2enmod; then a2enmod rewrite; fi; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libfreetype6-dev lib 48.0s
=> [12/26] RUN { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=60'; echo 'opcache.fast_sh 0.2s
=> [13/26] RUN echo 'memory_limit = 1028M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini 0.2s
=> [14/26] WORKDIR /var/www/html 0.0s
=> [15/26] RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf 0.2s
=> [16/26] WORKDIR /var/www 0.0s
=> [17/26] RUN chmod a+x /app/tripaldocker/init_scripts/composer-init.sh && /app/tripaldocker/init_scripts/composer-init.sh && vendor/bin/drush --version 6.4s
=> [18/26] WORKDIR /var/www 0.0s
=> [19/26] RUN export COMPOSER_MEMORY_LIMIT=-1 && export COMPOSER_NO_INTERACTION=1 && composer create-project drupal/recommended-project:9.4.x-dev --stability dev --no-install drupal9 && cd drupal9 & 146.8s
=> ERROR [20/26] RUN mkdir /var/www/drupal9/web/sites/default/files && mkdir /var/www/drupal9/web/sites/default/files/simpletest && chown -R www-data:www-data /var/www/drupal9 && chmod 02775 -R /var/ww 0.2s
------
> [20/26] RUN mkdir /var/www/drupal9/web/sites/default/files && mkdir /var/www/drupal9/web/sites/default/files/simpletest && chown -R www-data:www-data /var/www/drupal9 && chmod 02775 -R /var/www/drupal9/web/sites/default/files && usermod -g www-data root:
#24 0.156 mkdir: cannot create directory '/var/www/drupal9/web/sites/default/files': No such file or directory
------
executor failed running [/bin/sh -c mkdir /var/www/drupal9/web/sites/default/files && mkdir /var/www/drupal9/web/sites/default/files/simpletest && chown -R www-data:www-data /var/www/drupal9 && chmod 02775 -R /var/www/drupal9/web/sites/default/files && usermod -g www-data root]: exit code: 1