dcycle / docker-drupal Goto Github PK
View Code? Open in Web Editor NEWDrupal + Drush in an up-to-date Docker image
Drupal + Drush in an up-to-date Docker image
I'm using an older version of starterkit-drupal8site and Drupal 8.8.5.
Composer was used to update to Drupal 8.9.16, however the Docker container still appears to be running 8.8.5.
I tried removing the Docker volumes (docker-compose down -v
) and running deploy.sh from scratch, however Drupal is still on 8.8.5.
After pushing the core update to Pantheon, I can confirm core is up to date in the Pantheon environment (8.9.16).
Any help would be appreciated, thanks!
To reproduce:
latest Docker Desktop on M1 mac OS
Make the following Dockerfile
FROM dcycle/drupal:9
RUN apt-get -y update && apt-get -y install rsyslog
Run:
docker build --progress=plain -f="Dockerfile" --no-cache .
This results in:
#1 [internal] load build definition from Dockerfile
#1 sha256:c62462f1d382f584f38f1065b0bb0d031acd5f6dd35b785e56ccc468534a2847
#1 transferring dockerfile: 83B done
#1 DONE 0.0s
#2 [internal] load .dockerignore
#2 sha256:a97a3e67155b015ae2c2be101bce09e443c9d90f25fe26804bde6484b18f0a8c
#2 transferring context: 2B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/dcycle/drupal:9
#3 sha256:2ab2b6fca4fb42bf6c729d2dbd58ec561796ec5d1b31414ff148e9aafaeafff9
#3 DONE 0.0s
#4 [1/2] FROM docker.io/dcycle/drupal:9
#4 sha256:4954af9bfb41ffe90800a61182259bdd8174754281803a0059b3bb1bb76954e3
#4 CACHED
#5 [2/2] RUN apt-get -y update && apt-get -y install rsyslog
#5 sha256:0ac3ea321c986b6a3b2263bcd90cea7fae002f11bab41b9c78f3875149fdef0d
#5 0.249 Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
#5 0.257 Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
#5 0.365 Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
#5 0.417 Get:4 http://security.debian.org/debian-security buster/updates/main arm64 Packages [307 kB]
#5 0.486 Get:5 http://deb.debian.org/debian buster/main arm64 Packages [7735 kB]
#5 1.494 Get:6 http://deb.debian.org/debian buster-updates/main arm64 Packages [14.5 kB]
#5 2.169 Fetched 8295 kB in 2s (4152 kB/s)
#5 2.169 Reading package lists...
#5 2.529 Reading package lists...
#5 2.869 Building dependency tree...
#5 2.933 Reading state information...
#5 2.998 The following additional packages will be installed:
#5 2.998 cron exim4-base exim4-config exim4-daemon-light guile-2.2-libs libestr0
#5 2.998 libevent-2.1-6 libfastjson4 libfribidi0 libgc1c2 libgnutls-dane0 libgsasl7
#5 2.998 libidn11 libkyotocabinet16v5 liblognorm5 libltdl7 liblzo2-2 libmailutils5
#5 2.999 libmariadb3 libntlm0 libpopt0 libpython2.7 libpython2.7-minimal
#5 2.999 libpython2.7-stdlib libunbound8 libwrap0 logrotate mailutils
#5 2.999 mailutils-common netbase psmisc sensible-utils
#5 2.999 Suggested packages:
#5 2.999 anacron checksecurity exim4-doc-html | exim4-doc-info eximon4 spf-tools-perl
#5 2.999 swaks dns-root-data mailutils-mh mailutils-doc rsyslog-mysql | rsyslog-pgsql
#5 2.999 rsyslog-mongodb rsyslog-doc rsyslog-gnutls rsyslog-gssapi rsyslog-relp
#5 3.149 The following NEW packages will be installed:
#5 3.149 cron exim4-base exim4-config exim4-daemon-light guile-2.2-libs libestr0
#5 3.149 libevent-2.1-6 libfastjson4 libfribidi0 libgc1c2 libgnutls-dane0 libgsasl7
#5 3.149 libidn11 libkyotocabinet16v5 liblognorm5 libltdl7 liblzo2-2 libmailutils5
#5 3.149 libmariadb3 libntlm0 libpopt0 libpython2.7 libpython2.7-minimal
#5 3.149 libpython2.7-stdlib libunbound8 libwrap0 logrotate mailutils
#5 3.149 mailutils-common netbase psmisc rsyslog sensible-utils
#5 3.247 0 upgraded, 33 newly installed, 0 to remove and 1 not upgraded.
#5 3.247 Need to get 15.8 MB of archives.
#5 3.247 After this operation, 78.7 MB of additional disk space will be used.
#5 3.247 Get:1 http://deb.debian.org/debian buster/main arm64 sensible-utils all 0.0.12 [15.8 kB]
#5 3.317 Get:2 http://deb.debian.org/debian buster/main arm64 cron arm64 3.0pl1-134+deb10u1 [98.0 kB]
#5 3.345 Get:3 http://deb.debian.org/debian buster/main arm64 libestr0 arm64 0.1.10-2.1 [8200 B]
#5 3.346 Get:4 http://deb.debian.org/debian buster/main arm64 libfastjson4 arm64 0.99.8-2 [24.2 kB]
#5 3.353 Get:5 http://deb.debian.org/debian buster/main arm64 liblognorm5 arm64 2.0.5-1 [52.4 kB]
#5 3.360 Get:6 http://deb.debian.org/debian buster/main arm64 rsyslog arm64 8.1901.0-1 [636 kB]
#5 3.435 Get:7 http://deb.debian.org/debian buster/main arm64 libpopt0 arm64 1.16-12 [48.3 kB]
#5 3.442 Get:8 http://deb.debian.org/debian buster/main arm64 logrotate arm64 3.14.0-4 [60.1 kB]
#5 3.449 Get:9 http://deb.debian.org/debian buster/main arm64 netbase all 5.6 [19.4 kB]
#5 3.453 Get:10 http://deb.debian.org/debian buster/main arm64 exim4-config all 4.92-8+deb10u6 [324 kB]
#5 3.495 Get:11 http://deb.debian.org/debian buster/main arm64 exim4-base arm64 4.92-8+deb10u6 [1136 kB]
#5 3.629 Get:12 http://deb.debian.org/debian buster/main arm64 libevent-2.1-6 arm64 2.1.8-stable-4 [150 kB]
#5 3.646 Get:13 http://deb.debian.org/debian buster/main arm64 libunbound8 arm64 1.9.0-2+deb10u2 [432 kB]
#5 3.698 Get:14 http://deb.debian.org/debian buster/main arm64 libgnutls-dane0 arm64 3.6.7-4+deb10u7 [317 kB]
#5 3.734 Get:15 http://deb.debian.org/debian buster/main arm64 exim4-daemon-light arm64 4.92-8+deb10u6 [557 kB]
#5 3.831 Get:16 http://deb.debian.org/debian buster/main arm64 libgc1c2 arm64 1:7.6.4-0.4 [214 kB]
#5 3.865 Get:17 http://deb.debian.org/debian buster/main arm64 libltdl7 arm64 2.4.6-9 [389 kB]
#5 3.874 Get:18 http://deb.debian.org/debian buster/main arm64 guile-2.2-libs arm64 2.2.4+1-2+deb10u1 [4938 kB]
#5 4.463 Get:19 http://deb.debian.org/debian buster/main arm64 libfribidi0 arm64 1.0.5-3.1+deb10u1 [63.6 kB]
#5 4.469 Get:20 http://deb.debian.org/debian buster/main arm64 libidn11 arm64 1.33-2.2 [113 kB]
#5 4.482 Get:21 http://deb.debian.org/debian buster/main arm64 libntlm0 arm64 1.5-1+deb10u1 [23.6 kB]
#5 4.485 Get:22 http://deb.debian.org/debian buster/main arm64 libgsasl7 arm64 1.8.0-8+b2 [198 kB]
#5 4.509 Get:23 http://deb.debian.org/debian buster/main arm64 liblzo2-2 arm64 2.10-0.1 [49.0 kB]
#5 4.515 Get:24 http://deb.debian.org/debian buster/main arm64 libkyotocabinet16v5 arm64 1.2.76-4.2+b1 [267 kB]
#5 4.545 Get:25 http://deb.debian.org/debian buster/main arm64 mailutils-common all 1:3.5-4 [689 kB]
#5 4.628 Get:26 http://deb.debian.org/debian buster/main arm64 libmariadb3 arm64 1:10.3.31-0+deb10u1 [162 kB]
#5 4.648 Get:27 http://deb.debian.org/debian buster/main arm64 libpython2.7-minimal arm64 2.7.16-2+deb10u1 [395 kB]
#5 4.695 Get:28 http://deb.debian.org/debian buster/main arm64 libpython2.7-stdlib arm64 2.7.16-2+deb10u1 [1890 kB]
#5 4.920 Get:29 http://deb.debian.org/debian buster/main arm64 libpython2.7 arm64 2.7.16-2+deb10u1 [958 kB]
#5 5.034 Get:30 http://deb.debian.org/debian buster/main arm64 libmailutils5 arm64 1:3.5-4 [829 kB]
#5 5.133 Get:31 http://deb.debian.org/debian buster/main arm64 libwrap0 arm64 7.6.q-28 [58.4 kB]
#5 5.139 Get:32 http://deb.debian.org/debian buster/main arm64 mailutils arm64 1:3.5-4 [570 kB]
#5 5.206 Get:33 http://deb.debian.org/debian buster/main arm64 psmisc arm64 23.2-1+deb10u1 [123 kB]
#5 5.299 debconf: delaying package configuration, since apt-utils is not installed
#5 5.315 Fetched 15.8 MB in 2s (7652 kB/s)
#5 5.319 dpkg: warning: 'ldconfig' not found in PATH or not executable
#5 5.319 dpkg: error: 1 expected program not found in PATH or not executable
#5 5.319 Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
#5 5.330 E: Sub-process /usr/bin/dpkg returned an error code (2)
#5 ERROR: executor failed running [/bin/sh -c apt-get -y update && apt-get -y install rsyslog]: exit code: 100
------
> [2/2] RUN apt-get -y update && apt-get -y install rsyslog:
------
executor failed running [/bin/sh -c apt-get -y update && apt-get -y install rsyslog]: exit code: 100
Sometime between March 5 and March 12, 2022, we are starting to get the following error when trying to build:
MySQL is up! Moving on...
[warning] Program UNKNOWN not found. Proceed if you have already created or emptied the Drupal database.
You are about to:
* Create a sites/default/settings.php file
// Do you want to continue?: yes.
[notice] Starting Drupal installation. This takes a while.
[notice] Performed install task: install_select_language
[notice] Performed install task: install_select_profile
[notice] Performed install task: install_load_profile
[notice] Performed install task: install_verify_requirements
In install.core.inc line 971:
Database name field is required.
Database username field is required.
Resolve all issues below to continue the installation. For help configuring
your database server, see the <a href="https://www.drupal.org/docs/8/insta
ll">installation handbook</a>, or contact your hosting provider.<div class=
"item-list"><ul><li>Failed to connect to your database server. The server r
eports the following message: <em class="placeholder">SQLSTATE[HY000] [2002
] No such file or directory</em>.<ul><li>Is the database server running?</l
i><li>Does the database exist or does the database user have sufficient pri
vileges to create the database?</li><li>Have you entered the correct databa
se name?</li><li>Have you entered the correct username and password?</li><l
i>Have you entered the correct database hostname and port number?</li></ul>
</li></ul></div>
Build step 'Execute shell' marked build as failure
Triggering a new build of [delete-droplet](https://ci.dcycle.com/job/delete-droplet/)
Finished: FAILURE
PHP 8.0 is reaching EOL on 26th November 2023, so it would be nice to get the image upgraded.
I've installed our environment on a test EC2 instance running debian and PHP 8.2 and everything looks good so far, but I haven't done a full test of all our contrib modules yet.
Also it seems like php-mcrypt has been brought back into the fold maybe, because I was able to do a regular install of the module instead of jumping through the pecl/pear hoops we had to do before.
Hello @alberto56,
@yi-yang-github can likely add additional detail but we've been running into a few issues since the latest container image update on docker hub and we're wondering if you might have any insight. By the looks of things your most recent and problematic tag is 7.2021-12-01-21-08-49-UTC
Tags previous to that were working for us. I'm not certian but beleive that your last preceeding tag may have been 7.2021-11-24-21-08-44-UTC. I'm using this log to make that determination: https://hub.docker.com/r/dcycle/drupal/tags?page=1&name=7
The issue on our side presents with the following exception:
WD php: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown[error]
column 'base.changed' in 'field list': SELECT base.uid AS uid,
base.name AS name, base.pass AS pass, base.mail AS mail, base.theme
AS theme, base.signature AS signature, base.signature_format AS
signature_format, base.created AS created, base.changed AS changed,
base.access AS access, base.login AS login, base.status AS status,
base.timezone AS timezone, base.language AS language, base.picture AS
picture, base.init AS init, base.data AS data, base.uuid AS uuid
FROM
{users} base
WHERE (base.uid IN (:db_condition_placeholder_0)) ; Array
(
[:db_condition_placeholder_0] => 0
)
in EntityCacheControllerHelper::entityCacheLoad() (line 142 of
/var/www/html/XXXXXXXXXX/modules/contrib/entitycache/includes/entitycache.entitycachecontrollerhelper.inc).
Drush command terminated abnormally due to an unrecoverable error. [error]
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.changed' in 'field list': SELECT base.uid AS uid, base.name AS name, base.pass AS pass, base.mail AS mail, base.theme AS theme, base.signature AS signature, base.signature_format AS signature_format, base.created AS created, base.changed AS changed, base.access AS access, base.login AS login, base.status AS status, base.timezone AS timezone, base.language AS language, base.picture AS picture, base.init AS init, base.data AS data, base.uuid AS uuid
FROM
{users} base
WHERE (base.uid IN (:db_condition_placeholder_0)) ; Array
(
[:db_condition_placeholder_0] => 0
)
in EntityCacheControllerHelper::entityCacheLoad() (line 142 of /var/www/html/XXXXXXXXXXX/modules/contrib/entitycache/includes/entitycache.entitycachecontrollerhelper.inc)
Any insight that you can provide would be much appreciated.
We are using ubuntu servers and nothing funky like ARM.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.