Pymediawikidocker example 2022-10-26
Jump to navigation
Jump to search
Install
$ pip install pymediawikidocker
$ mwcluster --help
usage: mwcluster [-h] [-bp BASEPORT] [-c] [-d] [-el [EXTENSIONNAMELIST ...]] [-ej EXTENSIONJSONFILE] [-f] [--logo LOGO] [-mv MARIADBVERSION] [-p PASSWORD] [-sp SQLPORT] [-smw SMWVERSION] [-u USER] [-V]
[-vl [VERSIONS ...]] [-wl [WIKIIDLIST ...]]
mwcluster Created by Wolfgang Fahl on 2021-06-21. Copyright 2021-2022 Wolfgang Fahl. All rights reserved. Licensed under the Apache License 2.0 http://www.apache.org/licenses/LICENSE-2.0 Distributed on an "AS
IS" basis without warranties or conditions of any kind, either express or implied.
options:
-h, --help show this help message and exit
-bp BASEPORT, --basePort BASEPORT
set how base html port 80 to be exposed - incrementing by one for each version [default: 9080]
-c, --check check the wikis [default: False]
-d, --debug set debug level [default: False]
-el [EXTENSIONNAMELIST ...], --extensionList [EXTENSIONNAMELIST ...]
list of extensions to be installed [default: ['Admin Links', 'Header Tabs', 'SyntaxHighlight', 'Variables']]
-ej EXTENSIONJSONFILE, --extensionJson EXTENSIONJSONFILE
additional extension descriptions default: None (default: None)
-f, --forceRebuild shall the applications rebuild be forced (with stop and remove of existing containers) (default: False)
--logo LOGO set Logo [default: $wgResourceBasePath/resources/assets/wiki.png]
-mv MARIADBVERSION, --mariaDBVersion MARIADBVERSION
mariaDB Version to be installed [default: 10.9]
-p PASSWORD, --password PASSWORD
set password for initial user [default: sysop-1234!]
-sp SQLPORT, --sqlBasePort SQLPORT
set base mySql port 3306 to be exposed - incrementing by one for each version [default: 9306]
-smw SMWVERSION, --smwVersion SMWVERSION
set SemanticMediaWiki Version to be installed default is None - no installation of SMW (default: None)
-u USER, --user USER set username of initial user with sysop rights [default: Sysop]
-V, --version show program's version number and exit
-vl [VERSIONS ...], --versionList [VERSIONS ...]
mediawiki versions to create docker applications for [default: ['1.27.7', '1.31.16', '1.35.8', '1.37.6', '1.38.4']]
-wl [WIKIIDLIST ...], --wikiIdList [WIKIIDLIST ...]
list of wikiIDs to be used for for py-3rdparty-mediawiki wikiuser quick access (default: None)
Testing the install
Starting docker containers with different wiki versions
$ mwcluster -f
creating docker compose applications for mediawiki versions ['1.27.7', '1.31.16', '1.35.8', '1.37.6', '1.38.4']
starting mediawiki 1.27.7 docker application ...
[+] Building 99.4s (22/22) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.12kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/mediawiki:1.27.7 1.9s
=> [ 1/17] FROM docker.io/library/mediawiki:1.27.7@sha256:2c46c500b7191763b30b0a51cbed87d143eac53cec979ce4225e96d1f33e6b51 20.9s
=> => resolve docker.io/library/mediawiki:1.27.7@sha256:2c46c500b7191763b30b0a51cbed87d143eac53cec979ce4225e96d1f33e6b51 0.0s
=> => sha256:2c46c500b7191763b30b0a51cbed87d143eac53cec979ce4225e96d1f33e6b51 1.43kB / 1.43kB 0.0s
=> => sha256:9a7e298d7841db1032406f8473cc0022d75e85e3d729211f349a1122069d5ba5 16.68kB / 16.68kB 0.0s
=> => sha256:4d75689ceb37a1d43e9135dec8dab81d15b696244cb5e9afa3bff24341b6f994 76.65MB / 76.65MB 3.3s
=> => sha256:8f827e65b69e66f5daf84ebb4ede7f11b43ee735592e6985065e57640972dc40 4.08kB / 4.08kB 0.0s
=> => sha256:b8f262c62ec67f02536f49654de586c022043652bbb6bbf76a8dab1542627a8d 27.09MB / 27.09MB 1.6s
=> => sha256:a98660e7def60e301f4f50a9f234d43f2922aba14529b75f3e993eec87923f40 226B / 226B 0.2s
=> => sha256:639eb0368afa91d939d760b3d91e28692054d8764dfd9aed3795518c80499121 225B / 225B 0.6s
=> => sha256:99e337926e9c1f22688985e7bd8aaaa6eb0fc030c0124768f09270bbb1d06b09 18.68MB / 18.68MB 1.8s
=> => sha256:431d44b3ce9857eab60108239149f0f37fcd2ae67084268ef67163363c19b262 444B / 444B 1.8s
=> => extracting sha256:b8f262c62ec67f02536f49654de586c022043652bbb6bbf76a8dab1542627a8d 1.7s
=> => sha256:beb665ea0e0e6844654fab0f6a246d6720dc272e3464bc3cb7bfaa65c74ebc48 492B / 492B 2.1s
=> => sha256:e7772b5f8ee992eab04cabc8319b8bf558b0d056f86df37d7d635ea770cb3a21 12.71MB / 12.71MB 2.9s
=> => sha256:b12e51f570794a22da21038be3c8f5c32a5f957bad18640497f79f919869dce2 494B / 494B 2.4s
=> => sha256:d741e4dd19c8a6ec6eb00a310fe6a8bcab4b745501fabe3de2af987ad428e0ff 14.64MB / 14.64MB 4.8s
=> => sha256:3c1c0201c26a58c1d5e46c5e093e5b54ed916af598633c530370c4bfe63cd29a 2.22kB / 2.22kB 3.3s
=> => sha256:569cefeda16ad33bc7ce8e3add23d2be803a3fb4e2876235dc1f07a884f671c1 895B / 895B 3.6s
=> => sha256:964aba105bf081b17c05468cb1960ba80c0caf69c6487426bf5a2c7c802c8e44 211B / 211B 3.7s
=> => extracting sha256:a98660e7def60e301f4f50a9f234d43f2922aba14529b75f3e993eec87923f40 0.0s
=> => extracting sha256:4d75689ceb37a1d43e9135dec8dab81d15b696244cb5e9afa3bff24341b6f994 4.5s
=> => sha256:d238f40cf5ac94e0687ae8ae25f765943b68dafa7ac929955e5aef05592ba768 63.58MB / 63.58MB 6.6s
=> => sha256:43086d6c89bed5ee37bfe888cec0290d38189320e741ff724d15846f33242064 2.69MB / 2.69MB 4.4s
=> => sha256:b95a47c13fb5291af3e56600553b35753fd1e2211b5f74dd02d2be7e29de2b9f 327B / 327B 4.7s
=> => sha256:fe1745f47e3e61742041a94412651ff951d648e29f8753881254c2d5bef636a7 142B / 142B 5.1s
=> => sha256:5f4a47e68dbbfb0524dae7e0c1985a6e1307f170b99b27d754b48b3c1f4e994c 31.92MB / 31.92MB 7.2s
=> => extracting sha256:639eb0368afa91d939d760b3d91e28692054d8764dfd9aed3795518c80499121 0.0s
=> => extracting sha256:99e337926e9c1f22688985e7bd8aaaa6eb0fc030c0124768f09270bbb1d06b09 0.9s
=> => extracting sha256:431d44b3ce9857eab60108239149f0f37fcd2ae67084268ef67163363c19b262 0.0s
=> => extracting sha256:beb665ea0e0e6844654fab0f6a246d6720dc272e3464bc3cb7bfaa65c74ebc48 0.0s
=> => extracting sha256:e7772b5f8ee992eab04cabc8319b8bf558b0d056f86df37d7d635ea770cb3a21 0.3s
=> => extracting sha256:b12e51f570794a22da21038be3c8f5c32a5f957bad18640497f79f919869dce2 0.0s
=> => extracting sha256:d741e4dd19c8a6ec6eb00a310fe6a8bcab4b745501fabe3de2af987ad428e0ff 1.0s
=> => extracting sha256:3c1c0201c26a58c1d5e46c5e093e5b54ed916af598633c530370c4bfe63cd29a 0.0s
=> => extracting sha256:964aba105bf081b17c05468cb1960ba80c0caf69c6487426bf5a2c7c802c8e44 0.0s
=> => extracting sha256:569cefeda16ad33bc7ce8e3add23d2be803a3fb4e2876235dc1f07a884f671c1 0.0s
=> => extracting sha256:d238f40cf5ac94e0687ae8ae25f765943b68dafa7ac929955e5aef05592ba768 4.6s
=> => extracting sha256:43086d6c89bed5ee37bfe888cec0290d38189320e741ff724d15846f33242064 0.2s
=> => extracting sha256:b95a47c13fb5291af3e56600553b35753fd1e2211b5f74dd02d2be7e29de2b9f 0.0s
=> => extracting sha256:fe1745f47e3e61742041a94412651ff951d648e29f8753881254c2d5bef636a7 0.0s
=> => extracting sha256:5f4a47e68dbbfb0524dae7e0c1985a6e1307f170b99b27d754b48b3c1f4e994c 4.1s
=> [internal] load build context 0.0s
=> => transferring context: 64.77kB 0.0s
=> [ 2/17] RUN apt-get -y update && apt-get -y --no-install-recommends --fix-missing install mariadb-client inetutils-ping cron curl git graphviz imagemagick procps 58.2s
=> [ 3/17] RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer 1.2s
=> [ 4/17] RUN composer self-update --1 1.2s
=> [ 5/17] COPY composer.local.json /var/www/html 0.0s
=> [ 6/17] RUN composer update --no-dev 12.4s
=> [ 7/17] COPY LocalSettings.php /var/www/html 0.1s
=> [ 8/17] COPY upload.ini /usr/local/etc/php/conf.d 0.0s
=> [ 9/17] COPY phpinfo.php /var/www/html 0.0s
=> [10/17] COPY wiki.sql /tmp 0.0s
=> [11/17] COPY initdb.sh /tmp 0.0s
=> [12/17] COPY installExtensions.sh /tmp 0.0s
=> [13/17] COPY update.sh /tmp 0.0s
=> [14/17] COPY addSysopUser.sh /tmp 0.0s
=> [15/17] COPY startRunJobs.sh /root 0.0s
=> [16/17] COPY addCronTabEntry.sh /root 0.0s
=> [17/17] RUN chmod +x /tmp/initdb.sh /tmp/update.sh /tmp/addSysopUser.sh /tmp/installExtensions.sh /root/addCronTabEntry.sh /root/startRunJobs.sh 0.5s
=> exporting to image 2.6s
=> => exporting layers 2.6s
=> => writing image sha256:642da7391afd3bc96e2323206719b8cb00ed8b7ef0440c714a04434d2ae5f1ce 0.0s
=> => naming to docker.io/library/mw1_27_7_mw 0.0s
[+] Running 12/12
⠿ db Pulled 13.1s
⠿ cf92e523b49e Pull complete 3.2s
⠿ 11a7b642a1b0 Pull complete 3.3s
⠿ d05db1f7ddc9 Pull complete 3.6s
⠿ 043662c3afa1 Pull complete 3.8s
⠿ de48eea20795 Pull complete 3.9s
⠿ 1a40b9e7476d Pull complete 4.4s
⠿ d053ff7fa7cc Pull complete 4.5s
⠿ f4459f17c9a8 Pull complete 4.6s
⠿ 05ae67b7d96a Pull complete 10.0s
⠿ 9bd55ebdb8b3 Pull complete 10.1s
⠿ baf1cda74ce3 Pull complete 10.2s
[+] Running 5/5
⠿ Network mw1_27_7_default Created 0.1s
⠿ Volume "mw1_27_7_etc" Created 0.0s
⠿ Volume "mw1_27_7_wikiimages" Created 0.0s
⠿ Container mw1_27_7-db-1 Started 1.6s
⠿ Container mw1_27_7-mw-1 Started 1.3s
Initializing MediaWiki SQL tables
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #1 failed will retry in 0.5 secs
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #2 failed will retry in 1.0 secs
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #3 failed will retry in 2.0 secs
Connection to wiki on localhost with user wikiuser established database returns: ('wiki',)
Executing docker command /tmp/installExtensions.sh
Executing docker command /tmp/initdb.sh
Executing docker command /tmp/update.sh
Executing docker command /tmp/addSysopUser.sh
Executing docker command /root/addCronTabEntry.sh
starting mediawiki 1.31.16 docker application ...
[+] Building 64.1s (22/22) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.12kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/mediawiki:1.31.16 1.3s
=> [ 1/17] FROM docker.io/library/mediawiki:1.31.16@sha256:6bab34a0235f3890273c11ebbac956e92777cf189f720eb9edc369c0c9dbdefe 21.3s
=> => resolve docker.io/library/mediawiki:1.31.16@sha256:6bab34a0235f3890273c11ebbac956e92777cf189f720eb9edc369c0c9dbdefe 0.0s
=> => sha256:99c3c1c4d556eaf1a4d1ec1591b053c3a723104b3c998a9d44a66132b7ee3af8 227B / 227B 0.4s
=> => sha256:5db9d7f26d52c8a1176a15cd0bb49476c500096a79ffc31ac53a30365945bc3e 16.25kB / 16.25kB 0.0s
=> => sha256:e5ae68f740265288a4888db98d2999a638fdcb6d725f427678814538d253aa4d 31.37MB / 31.37MB 2.1s
=> => sha256:4a3b4c7ae6ba1d1f1d758dea9b1ef706a3a30be4f322a11789d0047eae0dd7f4 4.29kB / 4.29kB 0.0s
=> => sha256:6bab34a0235f3890273c11ebbac956e92777cf189f720eb9edc369c0c9dbdefe 1.43kB / 1.43kB 0.0s
=> => sha256:2c23b6beb07ab1b78af3929ff31a2ec34ece94ac611be50a32d54406e925b64f 91.61MB / 91.61MB 4.3s
=> => sha256:9874148cff9ac18f61ee23d041488694c002bf082e32d004232055b99e2f705f 268B / 268B 0.6s
=> => sha256:52defac986292394d78237bb5d79c9b45c18bcd31ba38ccf9a1c9fab6ee955b7 19.24MB / 19.24MB 1.8s
=> => sha256:585eed6f53992820a6d18df110b45f7a75a2d8b94fc827978b09e444ee3985dd 471B / 471B 1.9s
=> => sha256:aa83ee0498fff0d0660501ab49e185d11ce4952ccd2f64a982e2909f21163bcd 515B / 515B 2.2s
=> => extracting sha256:e5ae68f740265288a4888db98d2999a638fdcb6d725f427678814538d253aa4d 2.0s
=> => sha256:4e5caea230784733958216b331fd2b76b6322b9a4f7336706bd1b95d535ef78a 490B / 490B 2.5s
=> => sha256:d9002f0f189f2dd8ea36e9e1683574a8e97334e136ad84dad7d01c02be0ccbe2 12.48MB / 12.48MB 4.6s
=> => sha256:3d1e6e422195f919eddb7116dd7ff8a1283fbcbeda577ad7da2436cfa8063c08 14.11MB / 14.11MB 3.3s
=> => sha256:49693021fbeb1467eafd00b46729f5e8e1ff0a31496c2ddb6304c27f12666a1e 2.31kB / 2.31kB 3.6s
=> => sha256:1f054dc5f3690ae4720e45c0cd4a6da68bb996c7a4e33bc6d898852248c206c0 245B / 245B 3.9s
=> => sha256:0ec61bcab2a408e8f927633040e9274e43d918c230a44914c6db334022d24563 212B / 212B 4.3s
=> => extracting sha256:99c3c1c4d556eaf1a4d1ec1591b053c3a723104b3c998a9d44a66132b7ee3af8 0.0s
=> => sha256:dd6f4d9d9d1b46f7950e1f769b6f63265feeab38db8df6c4e895979cb2dba83e 895B / 895B 4.6s
=> => sha256:9e7191abf6023a312a4cbae112e4a372ae08ebde91af7ebeaf8ec1933aaa6df6 41.66MB / 41.66MB 6.7s
=> => extracting sha256:2c23b6beb07ab1b78af3929ff31a2ec34ece94ac611be50a32d54406e925b64f 5.3s
=> => sha256:b6c5eb96880c44980e7345ce0fe300592d54c44ebb01ad458fab2cd4034315e6 313B / 313B 5.0s
=> => sha256:84be2e39c6c68266ae3db10219f8256763ec58ae94ccf21ca9adbbcc4fd1cc2f 1.90MB / 1.90MB 5.1s
=> => sha256:85e83aaea739da585a33ad28ce3fc0e0c53ecd73072196d6a761aed4fa5d6274 169B / 169B 5.3s
=> => sha256:55160b0a0f859f138833d39ca06d70cf191699efd9647bcb5a9167950d730a08 36.18MB / 36.18MB 8.2s
=> => extracting sha256:9874148cff9ac18f61ee23d041488694c002bf082e32d004232055b99e2f705f 0.0s
=> => extracting sha256:52defac986292394d78237bb5d79c9b45c18bcd31ba38ccf9a1c9fab6ee955b7 1.0s
=> => extracting sha256:585eed6f53992820a6d18df110b45f7a75a2d8b94fc827978b09e444ee3985dd 0.0s
=> => extracting sha256:aa83ee0498fff0d0660501ab49e185d11ce4952ccd2f64a982e2909f21163bcd 0.0s
=> => extracting sha256:d9002f0f189f2dd8ea36e9e1683574a8e97334e136ad84dad7d01c02be0ccbe2 0.3s
=> => extracting sha256:4e5caea230784733958216b331fd2b76b6322b9a4f7336706bd1b95d535ef78a 0.0s
=> => extracting sha256:3d1e6e422195f919eddb7116dd7ff8a1283fbcbeda577ad7da2436cfa8063c08 1.1s
=> => extracting sha256:49693021fbeb1467eafd00b46729f5e8e1ff0a31496c2ddb6304c27f12666a1e 0.0s
=> => extracting sha256:1f054dc5f3690ae4720e45c0cd4a6da68bb996c7a4e33bc6d898852248c206c0 0.0s
=> => extracting sha256:0ec61bcab2a408e8f927633040e9274e43d918c230a44914c6db334022d24563 0.0s
=> => extracting sha256:dd6f4d9d9d1b46f7950e1f769b6f63265feeab38db8df6c4e895979cb2dba83e 0.0s
=> => extracting sha256:9e7191abf6023a312a4cbae112e4a372ae08ebde91af7ebeaf8ec1933aaa6df6 2.5s
=> => extracting sha256:84be2e39c6c68266ae3db10219f8256763ec58ae94ccf21ca9adbbcc4fd1cc2f 0.2s
=> => extracting sha256:b6c5eb96880c44980e7345ce0fe300592d54c44ebb01ad458fab2cd4034315e6 0.0s
=> => extracting sha256:85e83aaea739da585a33ad28ce3fc0e0c53ecd73072196d6a761aed4fa5d6274 0.0s
=> => extracting sha256:55160b0a0f859f138833d39ca06d70cf191699efd9647bcb5a9167950d730a08 4.7s
=> [internal] load build context 0.0s
=> => transferring context: 75.02kB 0.0s
=> [ 2/17] RUN apt-get -y update && apt-get -y --no-install-recommends --fix-missing install mariadb-client inetutils-ping cron curl git graphviz imagemagick procps 22.4s
=> [ 3/17] RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer 1.3s
=> [ 4/17] RUN composer self-update --1 1.1s
=> [ 5/17] COPY composer.local.json /var/www/html 0.0s
=> [ 6/17] RUN composer update --no-dev 14.0s
=> [ 7/17] COPY LocalSettings.php /var/www/html 0.0s
=> [ 8/17] COPY upload.ini /usr/local/etc/php/conf.d 0.0s
=> [ 9/17] COPY phpinfo.php /var/www/html 0.0s
=> [10/17] COPY wiki.sql /tmp 0.0s
=> [11/17] COPY initdb.sh /tmp 0.0s
=> [12/17] COPY installExtensions.sh /tmp 0.0s
=> [13/17] COPY update.sh /tmp 0.0s
=> [14/17] COPY addSysopUser.sh /tmp 0.0s
=> [15/17] COPY startRunJobs.sh /root 0.0s
=> [16/17] COPY addCronTabEntry.sh /root 0.0s
=> [17/17] RUN chmod +x /tmp/initdb.sh /tmp/update.sh /tmp/addSysopUser.sh /tmp/installExtensions.sh /root/addCronTabEntry.sh /root/startRunJobs.sh 0.4s
=> exporting to image 2.0s
=> => exporting layers 1.9s
=> => writing image sha256:024e83f4b5aaa13b2dc63debfd2fd692b400f343fad8c4daa944a5e1415b2411 0.0s
=> => naming to docker.io/library/mw1_31_16_mw 0.0s
[+] Running 5/5
⠿ Network mw1_31_16_default Created 0.1s
⠿ Volume "mw1_31_16_etc" Created 0.0s
⠿ Volume "mw1_31_16_wikiimages" Created 0.0s
⠿ Container mw1_31_16-db-1 Started 0.8s
⠿ Container mw1_31_16-mw-1 Started 1.3s
Initializing MediaWiki SQL tables
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #1 failed will retry in 0.5 secs
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #2 failed will retry in 1.0 secs
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #3 failed will retry in 2.0 secs
Connection to wiki on localhost with user wikiuser established database returns: ('wiki',)
Executing docker command /tmp/installExtensions.sh
Executing docker command /tmp/initdb.sh
Executing docker command /tmp/update.sh
Executing docker command /tmp/addSysopUser.sh
Executing docker command /root/addCronTabEntry.sh
starting mediawiki 1.35.8 docker application ...
[+] Building 75.5s (22/22) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.12kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/mediawiki:1.35.8 1.3s
=> [internal] load build context 0.0s
=> => transferring context: 72.36kB 0.0s
=> [ 1/17] FROM docker.io/library/mediawiki:1.35.8@sha256:23d46eba98581eee9d94faa41624b4b2d090ca176d21f0a1fa350dcfc239990d 23.7s
=> => resolve docker.io/library/mediawiki:1.35.8@sha256:23d46eba98581eee9d94faa41624b4b2d090ca176d21f0a1fa350dcfc239990d 0.0s
=> => sha256:6df15a62a4a6b9b7d424d9ae3ea21fe84294dad9d54c8dd7deb3948fb5a74752 4.50kB / 4.50kB 0.0s
=> => sha256:e7793be89e9cdecbe7f44d7cdb803c08522f057e4fbdd2b0cc72019e378bb660 91.63MB / 91.63MB 4.2s
=> => sha256:1e83b070fd9716453dd96b679a05d9d11c1f66d95582736a8d809d73a3f70c0d 227B / 227B 0.3s
=> => sha256:bd159e379b3b1bc0134341e4ffdeab5f966ec422ae04818bb69ecef08a823b05 31.42MB / 31.42MB 1.5s
=> => sha256:23d46eba98581eee9d94faa41624b4b2d090ca176d21f0a1fa350dcfc239990d 1.43kB / 1.43kB 0.0s
=> => sha256:36e7231b634de882251a60b242d227c500073a8374921dd2305526dad0232550 16.88kB / 16.88kB 0.0s
=> => sha256:4220e0c033772bd27ff577c6cc30afe1cd81296bf0d58615a56a8923c07c655a 271B / 271B 0.6s
=> => sha256:e32ee0a815d231a64b4246375a30b7118a82d5b79313c2b38ea9a467c98a0189 19.24MB / 19.24MB 1.7s
=> => extracting sha256:bd159e379b3b1bc0134341e4ffdeab5f966ec422ae04818bb69ecef08a823b05 2.0s
=> => sha256:89791c7bacac602b302faca96047cd9a37c3764395bfaf24565aac243ba099c3 475B / 475B 1.7s
=> => sha256:c40865ce58aff14d59be46cb438e21cd76d99ad7370b1ac69a9b332483268e43 10.76MB / 10.76MB 2.3s
=> => sha256:263f74f407a4a6a8c3c2f5be972638b7bc8661b62e3d43e3164057335ec3389a 513B / 513B 1.9s
=> => sha256:70d0bf632e16bff0683ef8b01a9d48aa9e15c2debb35da5fcaa73ff790964631 492B / 492B 2.0s
=> => sha256:afc19484b512dd835df8fcd903baefe8bd1a9e64308d9261cce313d9b6322098 10.20MB / 10.20MB 2.6s
=> => sha256:4f398e269cc8691de14d457c21e0aeab9b3c3c737c0adf91abf03aca6c0f68f6 2.46kB / 2.46kB 2.5s
=> => sha256:53b37b2317c3936e78525ad3b33fac88abc6ae98d68c9b4a71009cbdcd51b224 246B / 246B 2.7s
=> => sha256:a7529d0acf5c5c89804cccb4226ec86622a535669c426235bc60d8c58f242ca7 894B / 894B 2.8s
=> => sha256:a76aac3904d602eda16fd6947f6512596acdda4f09f2f07b1f64d613142fe191 41.66MB / 41.66MB 4.4s
=> => sha256:871f22fbf578f11560dd24d44f3bf0e4d6ec565946869778947638ff2afba5d6 1.72MB / 1.72MB 3.4s
=> => sha256:4f9b7c8cab652597fbd27adf03aafc2056e93db431c50ceb96b782d7e663ebd4 580B / 580B 3.6s
=> => extracting sha256:1e83b070fd9716453dd96b679a05d9d11c1f66d95582736a8d809d73a3f70c0d 0.0s
=> => sha256:bab674353e772da66f0a24184ab1f2774cf81cafffc05cadab0c449b49114ee4 933B / 933B 3.9s
=> => sha256:f671ccada046f6239d11319d8c09c2dc9475e8f84088f556ae564cf5f510010e 312B / 312B 4.2s
=> => sha256:11ed54665db6d48a38cc4f71834dcea64a71c76beb7bf44d35fe3ff6ae58cbfb 171B / 171B 4.4s
=> => sha256:e0e18d9069a42558cffe4d3c34e0139f3a2b82a69bda62d71b52de9f00844b60 50.91MB / 50.91MB 7.0s
=> => extracting sha256:e7793be89e9cdecbe7f44d7cdb803c08522f057e4fbdd2b0cc72019e378bb660 5.2s
=> => extracting sha256:4220e0c033772bd27ff577c6cc30afe1cd81296bf0d58615a56a8923c07c655a 0.0s
=> => extracting sha256:e32ee0a815d231a64b4246375a30b7118a82d5b79313c2b38ea9a467c98a0189 1.0s
=> => extracting sha256:89791c7bacac602b302faca96047cd9a37c3764395bfaf24565aac243ba099c3 0.0s
=> => extracting sha256:263f74f407a4a6a8c3c2f5be972638b7bc8661b62e3d43e3164057335ec3389a 0.0s
=> => extracting sha256:c40865ce58aff14d59be46cb438e21cd76d99ad7370b1ac69a9b332483268e43 0.3s
=> => extracting sha256:70d0bf632e16bff0683ef8b01a9d48aa9e15c2debb35da5fcaa73ff790964631 0.0s
=> => extracting sha256:afc19484b512dd835df8fcd903baefe8bd1a9e64308d9261cce313d9b6322098 0.8s
=> => extracting sha256:4f398e269cc8691de14d457c21e0aeab9b3c3c737c0adf91abf03aca6c0f68f6 0.0s
=> => extracting sha256:53b37b2317c3936e78525ad3b33fac88abc6ae98d68c9b4a71009cbdcd51b224 0.0s
=> => extracting sha256:a7529d0acf5c5c89804cccb4226ec86622a535669c426235bc60d8c58f242ca7 0.0s
=> => extracting sha256:a76aac3904d602eda16fd6947f6512596acdda4f09f2f07b1f64d613142fe191 2.5s
=> => extracting sha256:871f22fbf578f11560dd24d44f3bf0e4d6ec565946869778947638ff2afba5d6 0.2s
=> => extracting sha256:4f9b7c8cab652597fbd27adf03aafc2056e93db431c50ceb96b782d7e663ebd4 0.0s
=> => extracting sha256:bab674353e772da66f0a24184ab1f2774cf81cafffc05cadab0c449b49114ee4 0.0s
=> => extracting sha256:f671ccada046f6239d11319d8c09c2dc9475e8f84088f556ae564cf5f510010e 0.0s
=> => extracting sha256:11ed54665db6d48a38cc4f71834dcea64a71c76beb7bf44d35fe3ff6ae58cbfb 0.0s
=> => extracting sha256:e0e18d9069a42558cffe4d3c34e0139f3a2b82a69bda62d71b52de9f00844b60 7.3s
=> [ 2/17] RUN apt-get -y update && apt-get -y --no-install-recommends --fix-missing install mariadb-client inetutils-ping cron curl git graphviz imagemagick procps 20.9s
=> [ 3/17] RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer 1.3s
=> [ 4/17] RUN composer self-update --1 1.1s
=> [ 5/17] COPY composer.local.json /var/www/html 0.0s
=> [ 6/17] RUN composer update --no-dev 24.2s
=> [ 7/17] COPY LocalSettings.php /var/www/html 0.0s
=> [ 8/17] COPY upload.ini /usr/local/etc/php/conf.d 0.0s
=> [ 9/17] COPY phpinfo.php /var/www/html 0.0s
=> [10/17] COPY wiki.sql /tmp 0.0s
=> [11/17] COPY initdb.sh /tmp 0.0s
=> [12/17] COPY installExtensions.sh /tmp 0.0s
=> [13/17] COPY update.sh /tmp 0.0s
=> [14/17] COPY addSysopUser.sh /tmp 0.0s
=> [15/17] COPY startRunJobs.sh /root 0.0s
=> [16/17] COPY addCronTabEntry.sh /root 0.0s
=> [17/17] RUN chmod +x /tmp/initdb.sh /tmp/update.sh /tmp/addSysopUser.sh /tmp/installExtensions.sh /root/addCronTabEntry.sh /root/startRunJobs.sh 0.5s
=> exporting to image 2.0s
=> => exporting layers 2.0s
=> => writing image sha256:7199100f293b43681e9cf7587dc1eb383e8d0f052d78d2bb0f661bdc01013c47 0.0s
=> => naming to docker.io/library/mw1_35_8_mw 0.0s
[+] Running 5/5
⠿ Network mw1_35_8_default Created 0.1s
⠿ Volume "mw1_35_8_etc" Created 0.0s
⠿ Volume "mw1_35_8_wikiimages" Created 0.0s
⠿ Container mw1_35_8-db-1 Started 0.8s
⠿ Container mw1_35_8-mw-1 Started 1.3s
Initializing MediaWiki SQL tables
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #1 failed will retry in 0.5 secs
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #2 failed will retry in 1.0 secs
Connection to wiki on localhost with user wikiuser established database returns: ('wiki',)
Executing docker command /tmp/installExtensions.sh
Executing docker command /tmp/initdb.sh
Executing docker command /tmp/update.sh
Executing docker command /tmp/addSysopUser.sh
Executing docker command /root/addCronTabEntry.sh
starting mediawiki 1.37.6 docker application ...
[+] Building 56.9s (22/22) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.12kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/mediawiki:1.37.6 1.7s
=> [ 1/17] FROM docker.io/library/mediawiki:1.37.6@sha256:fec4028413e10eb2a8e0760ef469b0560b8e74ee17534934e15311b000c747ea 10.1s
=> => resolve docker.io/library/mediawiki:1.37.6@sha256:fec4028413e10eb2a8e0760ef469b0560b8e74ee17534934e15311b000c747ea 0.0s
=> => sha256:55ab46eeb86e4450505ff22ae95121ff143ababafb2d7d590126a91712e30b44 4.50kB / 4.50kB 0.0s
=> => sha256:fec4028413e10eb2a8e0760ef469b0560b8e74ee17534934e15311b000c747ea 1.43kB / 1.43kB 0.0s
=> => sha256:c155b9c2542954e6a98d4a90504b610d41fcd2b227e4094cf2e94e4877bcf218 16.88kB / 16.88kB 0.0s
=> => sha256:773a0f4bde077778facad2ffe1986bc5a2513d48c32ca073edd839291f51f3b8 52.36MB / 52.36MB 2.1s
=> => extracting sha256:773a0f4bde077778facad2ffe1986bc5a2513d48c32ca073edd839291f51f3b8 7.6s
=> [internal] load build context 0.0s
=> => transferring context: 71.92kB 0.0s
=> [ 2/17] RUN apt-get -y update && apt-get -y --no-install-recommends --fix-missing install mariadb-client inetutils-ping cron curl git graphviz imagemagick procps 19.2s
=> [ 3/17] RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer 1.2s
=> [ 4/17] RUN composer self-update --1 1.2s
=> [ 5/17] COPY composer.local.json /var/www/html 0.0s
=> [ 6/17] RUN composer update --no-dev 20.7s
=> [ 7/17] COPY LocalSettings.php /var/www/html 0.0s
=> [ 8/17] COPY upload.ini /usr/local/etc/php/conf.d 0.0s
=> [ 9/17] COPY phpinfo.php /var/www/html 0.0s
=> [10/17] COPY wiki.sql /tmp 0.0s
=> [11/17] COPY initdb.sh /tmp 0.0s
=> [12/17] COPY installExtensions.sh /tmp 0.0s
=> [13/17] COPY update.sh /tmp 0.0s
=> [14/17] COPY addSysopUser.sh /tmp 0.0s
=> [15/17] COPY startRunJobs.sh /root 0.0s
=> [16/17] COPY addCronTabEntry.sh /root 0.0s
=> [17/17] RUN chmod +x /tmp/initdb.sh /tmp/update.sh /tmp/addSysopUser.sh /tmp/installExtensions.sh /root/addCronTabEntry.sh /root/startRunJobs.sh 0.4s
=> exporting to image 1.9s
=> => exporting layers 1.9s
=> => writing image sha256:dd13b0cbce9378bdaa4ee0232939ae72e8ed44a952c8e8ff4e4a1bdaf7fc1079 0.0s
=> => naming to docker.io/library/mw1_37_6_mw 0.0s
[+] Running 5/5
⠿ Network mw1_37_6_default Created 0.1s
⠿ Volume "mw1_37_6_etc" Created 0.0s
⠿ Volume "mw1_37_6_wikiimages" Created 0.0s
⠿ Container mw1_37_6-db-1 Started 0.8s
⠿ Container mw1_37_6-mw-1 Started 1.4s
Initializing MediaWiki SQL tables
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #1 failed will retry in 0.5 secs
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #2 failed will retry in 1.0 secs
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #3 failed will retry in 2.0 secs
Connection to wiki on localhost with user wikiuser established database returns: ('wiki',)
Executing docker command /tmp/installExtensions.sh
Executing docker command /tmp/initdb.sh
Executing docker command /tmp/update.sh
Executing docker command /tmp/addSysopUser.sh
Executing docker command /root/addCronTabEntry.sh
starting mediawiki 1.38.4 docker application ...
[+] Building 53.1s (22/22) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.12kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/mediawiki:1.38.4 1.0s
=> [ 1/17] FROM docker.io/library/mediawiki:1.38.4@sha256:0cd0c81cb863c7820b62b3544b310ca45622ca296e7660cb7b443a455fdc235b 10.2s
=> => resolve docker.io/library/mediawiki:1.38.4@sha256:0cd0c81cb863c7820b62b3544b310ca45622ca296e7660cb7b443a455fdc235b 0.0s
=> => sha256:ebbe82035198b7c4e9beb336535ffff0c4a13933ed043630463eacfb700832bc 55.93MB / 55.93MB 1.6s
=> => sha256:f2e1d776b3079c5f5899c27b1ee34fca51f765ee690b0454f403cbc690a812d1 16.88kB / 16.88kB 0.0s
=> => sha256:0cd0c81cb863c7820b62b3544b310ca45622ca296e7660cb7b443a455fdc235b 1.43kB / 1.43kB 0.0s
=> => sha256:a95031f8b0ae3f268f0a5b6a321c6e93de90e5b6912ebd5a5fb8bf1037110c7f 4.50kB / 4.50kB 0.0s
=> => extracting sha256:ebbe82035198b7c4e9beb336535ffff0c4a13933ed043630463eacfb700832bc 8.2s
=> [internal] load build context 0.0s
=> => transferring context: 75.33kB 0.0s
=> [ 2/17] RUN apt-get -y update && apt-get -y --no-install-recommends --fix-missing install mariadb-client inetutils-ping cron curl git graphviz imagemagick procps 18.9s
=> [ 3/17] RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer 1.2s
=> [ 4/17] RUN composer self-update --1 1.5s
=> [ 5/17] COPY composer.local.json /var/www/html 0.0s
=> [ 6/17] RUN composer update --no-dev 17.4s
=> [ 7/17] COPY LocalSettings.php /var/www/html 0.0s
=> [ 8/17] COPY upload.ini /usr/local/etc/php/conf.d 0.0s
=> [ 9/17] COPY phpinfo.php /var/www/html 0.0s
=> [10/17] COPY wiki.sql /tmp 0.0s
=> [11/17] COPY initdb.sh /tmp 0.0s
=> [12/17] COPY installExtensions.sh /tmp 0.0s
=> [13/17] COPY update.sh /tmp 0.0s
=> [14/17] COPY addSysopUser.sh /tmp 0.0s
=> [15/17] COPY startRunJobs.sh /root 0.0s
=> [16/17] COPY addCronTabEntry.sh /root 0.0s
=> [17/17] RUN chmod +x /tmp/initdb.sh /tmp/update.sh /tmp/addSysopUser.sh /tmp/installExtensions.sh /root/addCronTabEntry.sh /root/startRunJobs.sh 0.4s
=> exporting to image 2.0s
=> => exporting layers 2.0s
=> => writing image sha256:18f76999951d21067468b5e35b8a63710e9dd1603ba2b5a647e267cbda6f06d7 0.0s
=> => naming to docker.io/library/mw1_38_4_mw 0.0s
[+] Running 5/5
⠿ Network mw1_38_4_default Created 0.1s
⠿ Volume "mw1_38_4_etc" Created 0.0s
⠿ Volume "mw1_38_4_wikiimages" Created 0.0s
⠿ Container mw1_38_4-db-1 Started 0.8s
⠿ Container mw1_38_4-mw-1 Started 1.3s
Initializing MediaWiki SQL tables
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #1 failed will retry in 0.5 secs
Connection to wiki on localhost with user wikiuser failed error: 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Connection attempt #2 failed will retry in 1.0 secs
Connection to wiki on localhost with user wikiuser established database returns: ('wiki',)
Executing docker command /tmp/installExtensions.sh
Executing docker command /tmp/initdb.sh
Executing docker command /tmp/update.sh
Executing docker command /tmp/addSysopUser.sh
Executing docker command /root/addCronTabEntry.sh
Checking running docker containers
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e1db290f004f mw1_38_4_mw "docker-php-entrypoi…" 2 minutes ago Up 2 minutes 0.0.0.0:9084->80/tcp, :::9084->80/tcp mw1_38_4-mw-1
12e15b4463fb mariadb:10.9 "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 0.0.0.0:9310->3306/tcp, :::9310->3306/tcp mw1_38_4-db-1
35fa9194f005 mw1_37_6_mw "docker-php-entrypoi…" 3 minutes ago Up 3 minutes 0.0.0.0:9083->80/tcp, :::9083->80/tcp mw1_37_6-mw-1
70eb777fafdf mariadb:10.9 "docker-entrypoint.s…" 3 minutes ago Up 3 minutes 0.0.0.0:9309->3306/tcp, :::9309->3306/tcp mw1_37_6-db-1
9bc9faa5e270 mw1_35_8_mw "docker-php-entrypoi…" 5 minutes ago Up 5 minutes 0.0.0.0:9082->80/tcp, :::9082->80/tcp mw1_35_8-mw-1
d8a610bcbb42 mariadb:10.9 "docker-entrypoint.s…" 5 minutes ago Up 5 minutes 0.0.0.0:9308->3306/tcp, :::9308->3306/tcp mw1_35_8-db-1
91d57e5c1475 mw1_31_16_mw "docker-php-entrypoi…" 6 minutes ago Up 6 minutes 0.0.0.0:9081->80/tcp, :::9081->80/tcp mw1_31_16-mw-1
8581a77ebc5f mariadb:10.9 "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 0.0.0.0:9307->3306/tcp, :::9307->3306/tcp mw1_31_16-db-1
0ff8684337df mw1_27_7_mw "docker-php-entrypoi…" 8 minutes ago Up 7 minutes 0.0.0.0:9080->80/tcp, :::9080->80/tcp mw1_27_7-mw-1
3b344689cb40 mariadb:10.9 "docker-entrypoint.s…" 8 minutes ago Up 7 minutes 0.0.0.0:9306->3306/tcp, :::9306->3306/tcp mw1_27_7-db-1
Testing the started docker containers
$ mwcluster --check
checking docker access for mediawiki versions ['1.27.7', '1.31.16', '1.35.8', '1.37.6', '1.38.4']
0:checking 1.27.7 ...
mediawiki webserver container mw1_27_7-mw-1:✅
mediawiki database container mw1_27_7-db-1:✅
port binding 9080= expected port 9080?:✅
Checking http://wikidata:9080/index.php/Special:Version ...
Special Version accessible ...:✅
Mediawiki Version 1.27.7= expected 1.27.7?:✅
Maria DB Version 10.9 fitting expected 10.9?:✅
1:checking 1.31.16 ...
mediawiki webserver container mw1_31_16-mw-1:✅
mediawiki database container mw1_31_16-db-1:✅
port binding 9081= expected port 9081?:✅
Checking http://wikidata:9081/index.php/Special:Version ...
Special Version accessible ...:✅
Mediawiki Version 1.31.16= expected 1.31.16?:✅
Maria DB Version 10.9 fitting expected 10.9?:✅
2:checking 1.35.8 ...
mediawiki webserver container mw1_35_8-mw-1:✅
mediawiki database container mw1_35_8-db-1:✅
port binding 9082= expected port 9082?:✅
Checking http://wikidata:9082/index.php/Special:Version ...
Special Version accessible ...:✅
Mediawiki Version 1.35.8= expected 1.35.8?:✅
Maria DB Version 10.9 fitting expected 10.9?:✅
3:checking 1.37.6 ...
mediawiki webserver container mw1_37_6-mw-1:✅
mediawiki database container mw1_37_6-db-1:✅
port binding 9083= expected port 9083?:✅
Checking http://wikidata:9083/index.php/Special:Version ...
Special Version accessible ...:✅
Mediawiki Version 1.37.6= expected 1.37.6?:✅
Maria DB Version 10.9 fitting expected 10.9?:✅
4:checking 1.38.4 ...
mediawiki webserver container mw1_38_4-mw-1:✅
mediawiki database container mw1_38_4-db-1:✅
port binding 9084= expected port 9084?:✅
Checking http://wikidata:9084/index.php/Special:Version ...
Special Version accessible ...:✅
Mediawiki Version 1.38.4= expected 1.38.4?:✅
Maria DB Version 10.9 fitting expected 10.9?:✅