forked from CanastaWiki/Canasta
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
1106 lines (1036 loc) · 51.7 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
FROM debian:12.5 AS base
LABEL maintainers="[email protected],[email protected]"
LABEL org.opencontainers.image.source=https://github.com/WikiTeq/Taqasta
ENV MW_VERSION=REL1_39 \
MW_CORE_VERSION=1.39.10 \
WWW_ROOT=/var/www/mediawiki \
MW_HOME=/var/www/mediawiki/w \
MW_LOG=/var/log/mediawiki \
MW_ORIGIN_FILES=/mw_origin_files \
MW_VOLUME=/mediawiki \
MW_IMPORT_VOLUME=/import \
WWW_USER=www-data \
WWW_GROUP=www-data \
APACHE_LOG_DIR=/var/log/apache2
# System setup
RUN set x; \
apt-get clean \
&& apt-get update \
&& apt-get --no-install-recommends install -y aptitude \
&& aptitude -y upgrade \
&& aptitude --without-recommends install -y \
git \
apache2 \
software-properties-common \
gpg \
apt-transport-https \
ca-certificates \
wget \
imagemagick \
librsvg2-bin \
python3-pygments \
msmtp \
msmtp-mta \
patch \
vim \
mc \
nano \
ffmpeg \
curl \
iputils-ping \
unzip \
gnupg \
default-mysql-client \
rsync \
lynx \
poppler-utils \
lsb-release \
&& wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg \
&& echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list \
&& aptitude update \
&& aptitude install -y \
php8.1 \
php8.1-mysql \
php8.1-cli \
php8.1-gd \
php8.1-mbstring \
php8.1-xml \
php8.1-mysql \
php8.1-intl \
php8.1-opcache \
php8.1-apcu \
php8.1-redis \
php8.1-curl \
php8.1-tidy \
php8.1-zip \
php8.1-tideways \
# Lua sandbox
php-pear \
php8.1-dev \
liblua5.1-0 \
liblua5.1-0-dev \
monit \
zip \
weasyprint \
pandoc \
clamav \
exiv2 \
libimage-exiftool-perl \
ploticus \
djvulibre-bin \
fonts-hosny-amiri \
jq \
# xvfb \ + 14.9 MB
# lilypond \ + 301 MB
&& pecl -d php_suffix=8.1 install luasandbox \
&& pecl -d php_suffix=8.1 install excimer \
&& aptitude -y remove php-pear php8.1-dev liblua5.1-0-dev \
&& aptitude clean \
&& rm -rf /var/lib/apt/lists/*
# FORCE USING PHP 8.1 (same for phar)
# For some reason sury provides other versions, see
# https://github.com/oerdnj/deb.sury.org/wiki/Frequently-Asked-Questions
RUN set -x; \
update-alternatives --set php /usr/bin/php8.1 \
&& update-alternatives --set phar /usr/bin/phar8.1 \
&& update-alternatives --set phar.phar /usr/bin/phar.phar8.1
# Post install configuration
RUN set -x; \
# Remove default config
rm /etc/apache2/sites-enabled/000-default.conf \
&& rm /etc/apache2/sites-available/000-default.conf \
&& rm -rf /var/www/html \
# Enable rewrite module
&& a2enmod rewrite \
# Create directories
&& mkdir -p $MW_HOME \
&& mkdir -p $MW_LOG \
&& mkdir -p $MW_ORIGIN_FILES \
&& mkdir -p $MW_VOLUME
# Composer
RUN set -x; \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& composer self-update 2.1.3
FROM base AS core
# MediaWiki core
RUN set -x; \
git clone --depth 1 -b $MW_CORE_VERSION https://gerrit.wikimedia.org/r/mediawiki/core.git $MW_HOME \
&& cd $MW_HOME \
&& git submodule update --init --recursive
# Add Bootstrap to LocalSettings.php if the web installer added the Chameleon skin
COPY _sources/patches/core-local-settings-generator.patch /tmp/core-local-settings-generator.patch
RUN set -x; \
cd $MW_HOME \
&& git apply /tmp/core-local-settings-generator.patch
# Patch composer
RUN set -x; \
sed -i 's="monolog/monolog": "2.2.0",="monolog/monolog": "^2.2",=g' $MW_HOME/composer.json
# Cleanup all .git leftovers
RUN set -x; \
cd $MW_HOME \
&& find . \( -name ".git" -o -name ".gitignore" -o -name ".gitmodules" -o -name ".gitattributes" \) -exec rm -rf -- {} +
FROM base AS skins
# Skins
# The Minerva Neue, MonoBook, Timeless, Vector and Vector 2022 skins are bundled into MediaWiki and do not need to be
# separately installed.
# The Chameleon skin is downloaded via Composer and also does not need to be installed.
RUN set -x; \
mkdir $MW_HOME/skins \
&& cd $MW_HOME/skins \
# CologneBlue
&& git clone -b $MW_VERSION --single-branch https://gerrit.wikimedia.org/r/mediawiki/skins/CologneBlue $MW_HOME/skins/CologneBlue \
&& cd $MW_HOME/skins/CologneBlue \
&& git checkout -q 4d588eb78d7e64e574f631c5897579537305437d \
# Modern
&& git clone -b $MW_VERSION --single-branch https://gerrit.wikimedia.org/r/mediawiki/skins/Modern $MW_HOME/skins/Modern \
&& cd $MW_HOME/skins/Modern \
&& git checkout -q fb6c2831b5f150e9b82d98d661710695a2d0f8f2 \
# Pivot
&& git clone -b v2.3.0 https://github.com/wikimedia/mediawiki-skins-Pivot $MW_HOME/skins/pivot \
&& cd $MW_HOME/skins/pivot \
&& git checkout -q d79af7514347eb5272936243d4013118354c85c1 \
# Refreshed
&& git clone -b $MW_VERSION --single-branch https://gerrit.wikimedia.org/r/mediawiki/skins/Refreshed $MW_HOME/skins/Refreshed \
&& cd $MW_HOME/skins/Refreshed \
&& git checkout -q 86f33620f25335eb62289aa18d342ff3b980d8b8
# TODO send to upstream, see https://wikiteq.atlassian.net/browse/MW-64 and https://wikiteq.atlassian.net/browse/MW-81
COPY _sources/patches/skin-refreshed.patch /tmp/skin-refreshed.patch
COPY _sources/patches/skin-refreshed-737080.diff /tmp/skin-refreshed-737080.diff
RUN set -x; \
cd $MW_HOME/skins/Refreshed \
&& patch -u -b includes/RefreshedTemplate.php -i /tmp/skin-refreshed.patch \
# TODO remove me when https://gerrit.wikimedia.org/r/c/mediawiki/skins/Refreshed/+/737080 merged
# Fix PHP Warning in RefreshedTemplate::makeElementWithIconHelper()
&& git apply /tmp/skin-refreshed-737080.diff
# Cleanup all .git leftovers
RUN set -x; \
cd $MW_HOME/skins \
&& find . \( -name ".git" -o -name ".gitignore" -o -name ".gitmodules" -o -name ".gitattributes" \) -exec rm -rf -- {} +
FROM base AS extensions
# Extensions
#
# The following extensions are bundled into MediaWiki and do not need to be separately installed (though in some cases
# they are modified): AbuseFilter, CategoryTree, Cite, CiteThisPage, CodeEditor, ConfirmEdit, Gadgets, ImageMap,
# InputBox, Interwiki, LocalisationUpdate, Math, MultimediaViewer, Nuke, OATHAuth, PageImages, ParserFunctions,
# PdfHandler, Poem, Renameuser, Replace Text, Scribunto, SecureLinkFixer, SpamBlacklist, SyntaxHighlight, TemplateData,
# TextExtracts, TitleBlacklist, VisualEditor, WikiEditor.
#
# The following extensions are downloaded via Composer and also do not need to be downloaded here: Bootstrap,
# BootstrapComponents, Maps, Mermaid, Semantic Breadcrumb Links, Semantic Compound Queries, Semantic Extra Special
# Properties, Semantic MediaWiki (along with all its helper library extensions, like DataValues), Semantic Result
# Formats, Semantic Scribunto, SimpleBatchUpload, SubPageList.
# A
RUN set -x; \
mkdir $MW_HOME/extensions \
&& cd $MW_HOME/extensions \
# AdminLinks (v. 0.6.1)
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/AdminLinks $MW_HOME/extensions/AdminLinks \
&& cd $MW_HOME/extensions/AdminLinks \
&& git checkout -q 60eda7201636218b80d83a637b70e5c753900e41 \
# AdvancedSearch
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/AdvancedSearch $MW_HOME/extensions/AdvancedSearch \
&& cd $MW_HOME/extensions/AdvancedSearch \
&& git checkout -q 1a44eafc93a17938333b74a37cb4deff2192e50a \
# AJAXPoll
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/AJAXPoll $MW_HOME/extensions/AJAXPoll \
&& cd $MW_HOME/extensions/AJAXPoll \
&& git checkout -q 8429d8d4cba5be6df04e3fec17b0daabbf10cfa7 \
# AntiSpoof
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/AntiSpoof $MW_HOME/extensions/AntiSpoof \
&& cd $MW_HOME/extensions/AntiSpoof \
&& git checkout -q 01cf89a678d5bab6610d24e07d3534356a5880cb \
# ApprovedRevs (v. 1.8.2)
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/ApprovedRevs $MW_HOME/extensions/ApprovedRevs \
&& cd $MW_HOME/extensions/ApprovedRevs \
&& git checkout -q 53b67bf7e1e8ac3d20c2fd41ad2ab1c708c045a6 \
# Arrays
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Arrays $MW_HOME/extensions/Arrays \
&& cd $MW_HOME/extensions/Arrays \
&& git checkout -q f42c28848f494f5f5843fa03da73f25437d2d36b
# B
RUN set -x; \
cd $MW_HOME/extensions \
# BetaFeatures
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/BetaFeatures $MW_HOME/extensions/BetaFeatures \
&& cd $MW_HOME/extensions/BetaFeatures \
&& git checkout -q 09cca44341f9695446c4e9fc9e8fec3fdcb197b0 \
# BreadCrumbs2
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/BreadCrumbs2 $MW_HOME/extensions/BreadCrumbs2 \
&& cd $MW_HOME/extensions/BreadCrumbs2 \
&& git checkout -q d53357a6839e94800a617de4fc451b6c64d0a1c8
# C
RUN set -x; \
cd $MW_HOME/extensions \
# Cargo (v. 3.5.1)
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/Cargo $MW_HOME/extensions/Cargo \
&& cd $MW_HOME/extensions/Cargo \
&& git checkout -q a2865938165c1389d852df762f8c85073859e5dd \
# CharInsert
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/CharInsert $MW_HOME/extensions/CharInsert \
&& cd $MW_HOME/extensions/CharInsert \
&& git checkout -q 54c0f0ca9119a3ce791fb5d53edd4ec32035a5c5 \
# CheckUser
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/CheckUser $MW_HOME/extensions/CheckUser \
&& cd $MW_HOME/extensions/CheckUser \
&& git checkout -q 920b1220e3d723164da6dec57e352eb102ae4385 \
# CirrusSearch
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/CirrusSearch $MW_HOME/extensions/CirrusSearch \
&& cd $MW_HOME/extensions/CirrusSearch \
&& git checkout -q 8296300873aaffe815800cf05c84fa04c8cbd2c0 \
# CodeMirror
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror $MW_HOME/extensions/CodeMirror \
&& cd $MW_HOME/extensions/CodeMirror \
&& git checkout -q 27efed79972ca181a194d17f4a94f4192fd5a493 \
# Collection
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Collection $MW_HOME/extensions/Collection \
&& cd $MW_HOME/extensions/Collection \
&& git checkout -q e00e70c6fcec963c8876e410e52c83c75ed60827 \
# CommentStreams
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/CommentStreams $MW_HOME/extensions/CommentStreams \
&& cd $MW_HOME/extensions/CommentStreams \
&& git checkout -q 274bb10bc2d39fd137650dbc0dfc607c766d1aaa \
# CommonsMetadata
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/CommonsMetadata $MW_HOME/extensions/CommonsMetadata \
&& cd $MW_HOME/extensions/CommonsMetadata \
&& git checkout -q 8ee30de3b1cabbe55c484839127493fd5fa5d076 \
# ConfirmAccount
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmAccount $MW_HOME/extensions/ConfirmAccount \
&& cd $MW_HOME/extensions/ConfirmAccount \
&& git checkout -q c06d5dfb43811a2dee99099476c57af2b6d762c4 \
# ContactPage
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/ContactPage $MW_HOME/extensions/ContactPage \
&& cd $MW_HOME/extensions/ContactPage \
&& git checkout -q f509796056ae1fc597b6e3c3c268fac35bf66636 \
# ContributionScores
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/ContributionScores $MW_HOME/extensions/ContributionScores \
&& cd $MW_HOME/extensions/ContributionScores \
&& git checkout -q 0c08d338a1150c76e74ae490cd4d5f5b9f6daa5f \
# CookieWarning
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning $MW_HOME/extensions/CookieWarning \
&& cd $MW_HOME/extensions/CookieWarning \
&& git checkout -q bc991e93133bd69fe45e07b3d4554225decc7dae \
# Cloudflare
&& git clone --single-branch -b master https://github.com/harugon/mediawiki-extensions-cloudflare.git $MW_HOME/extensions/Cloudflare \
&& cd $MW_HOME/extensions/Cloudflare \
&& git checkout -q 9df89f3f5e0ace26b07d146167bab72540082fc8
# D
RUN set -x; \
cd $MW_HOME/extensions \
# DataTransfer
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/DataTransfer $MW_HOME/extensions/DataTransfer \
&& cd $MW_HOME/extensions/DataTransfer \
&& git checkout -q 2f9f949f71f0bb7d1bd8b6b97c795b9428bb1c71 \
# DeleteBatch
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/DeleteBatch $MW_HOME/extensions/DeleteBatch \
&& cd $MW_HOME/extensions/DeleteBatch \
&& git checkout -q 82078d60fc59a718f429ddebe5e99de8a8734413 \
# Description2
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Description2 $MW_HOME/extensions/Description2 \
&& cd $MW_HOME/extensions/Description2 \
&& git checkout -q d2a5322a44f940de873050573e35fba4eb3063f8 \
# Disambiguator
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Disambiguator $MW_HOME/extensions/Disambiguator \
&& cd $MW_HOME/extensions/Disambiguator \
&& git checkout -q b7e7fad5f9f3dccfb902a3cbfd3bf2b16df91871 \
# DismissableSiteNotice
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/DismissableSiteNotice $MW_HOME/extensions/DismissableSiteNotice \
&& cd $MW_HOME/extensions/DismissableSiteNotice \
&& git checkout -q 88129f80f077ec9e4932148056c8cfc1ed0361c7 \
# DisplayTitle
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/DisplayTitle $MW_HOME/extensions/DisplayTitle \
&& cd $MW_HOME/extensions/DisplayTitle \
&& git checkout -q c485a2a89a1fd9cb6a4eda4f821de86b2a034f70 \
# DynamicPageList3
&& git clone --single-branch -b $MW_VERSION https://github.com/Universal-Omega/DynamicPageList3.git $MW_HOME/extensions/DynamicPageList3 \
&& cd $MW_HOME/extensions/DynamicPageList3 \
&& git checkout -q e4faf608b0f5a77c4a4c3576a2a28216c7d2bbbf
# E
RUN set -x; \
cd $MW_HOME/extensions \
# Echo
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo $MW_HOME/extensions/Echo \
&& cd $MW_HOME/extensions/Echo \
&& git checkout -q 7ad986ac9dd4ab961f4ab7eccafa41fa2f486b75 \
# Editcount
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Editcount $MW_HOME/extensions/Editcount \
&& cd $MW_HOME/extensions/Editcount \
&& git checkout -q 41544ffceb1356f91575dc6772a48b172751d7cc \
# Elastica
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Elastica $MW_HOME/extensions/Elastica \
&& cd $MW_HOME/extensions/Elastica \
&& git checkout -q e4ead38b71ed4f3df8dc689fe448b749771b4ed4 \
# EmailAuthorization
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/EmailAuthorization $MW_HOME/extensions/EmailAuthorization \
&& cd $MW_HOME/extensions/EmailAuthorization \
&& git checkout -q 2016da1b354f741d89b5dc207d4a84e11ffe9bce \
# EmbedVideo
# (Canasta uses hydrawiki, but we switched to StarCitizenWiki's fork which
# which is maintained, WE-286)
&& git clone --single-branch -b master https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo.git $MW_HOME/extensions/EmbedVideo \
&& cd $MW_HOME/extensions/EmbedVideo \
&& git checkout -q 5c03c031070981730a0e01aa3cbc3e5cbd1b88c1 \
# EventLogging
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/EventLogging $MW_HOME/extensions/EventLogging \
&& cd $MW_HOME/extensions/EventLogging \
&& git checkout -q 2740dbcd139be279ca2a4db039739b4f796b4178 \
# EventStreamConfig
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/EventStreamConfig $MW_HOME/extensions/EventStreamConfig \
&& cd $MW_HOME/extensions/EventStreamConfig \
&& git checkout -q 1aae8cb6c312e49f0126091a59a453cb224657f9 \
# ExternalData (v. 3.2)
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/ExternalData $MW_HOME/extensions/ExternalData \
&& cd $MW_HOME/extensions/ExternalData \
&& git checkout -q 5d30e60a65ca53a3fb5b39826deb2e6917892e22
# F
RUN set -x; \
cd $MW_HOME/extensions \
# FlexDiagrams (v. 0.5)
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/FlexDiagrams $MW_HOME/extensions/FlexDiagrams \
&& cd $MW_HOME/extensions/FlexDiagrams \
&& git checkout -q eefc9e29aedfc6d8ffaf4f4e50043b390ebd7adc
# G
RUN set -x; \
cd $MW_HOME/extensions \
# GlobalNotice
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/GlobalNotice $MW_HOME/extensions/GlobalNotice \
&& cd $MW_HOME/extensions/GlobalNotice \
&& git checkout -q 15a40bff4641f00a5a8dda3d36795b1c659c19a7 \
# GoogleAnalyticsMetrics
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/GoogleAnalyticsMetrics $MW_HOME/extensions/GoogleAnalyticsMetrics \
&& cd $MW_HOME/extensions/GoogleAnalyticsMetrics \
&& git checkout -q e1a2ebeec21e67fdafed7730a53cfaf2eccd5852 \
# GoogleDocCreator
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/GoogleDocCreator $MW_HOME/extensions/GoogleDocCreator \
&& cd $MW_HOME/extensions/GoogleDocCreator \
&& git checkout -q 9e53ecfa4149688a2352a7898c2a2005632e1b7d \
# Graph
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Graph $MW_HOME/extensions/Graph \
&& cd $MW_HOME/extensions/Graph \
&& git checkout -q 9c229eafdf406c95a4a666a6b7f2a9d0d3d682e4
# H
RUN set -x; \
cd $MW_HOME/extensions \
# HeaderFooter
&& git clone -b MW_REL1_39_Compat https://github.com/wikimedia/mediawiki-extensions-HeaderFooter.git $MW_HOME/extensions/HeaderFooter \
&& cd $MW_HOME/extensions/HeaderFooter \
&& git checkout -q 8b7e15ca013af371c7f37b0d955ed2039a5e2fbf \
# HeaderTabs (v2.2)
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/HeaderTabs $MW_HOME/extensions/HeaderTabs \
&& cd $MW_HOME/extensions/HeaderTabs \
&& git checkout -q 42aaabf1deeb0a228fc99e578ff7ec925e560dd7 \
# HTMLTags
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/HTMLTags $MW_HOME/extensions/HTMLTags \
&& cd $MW_HOME/extensions/HTMLTags \
&& git checkout -q b8cb3131c5e76f5c037c8474fe14e51f2e877f03
# L
RUN set -x; \
cd $MW_HOME/extensions \
# LabeledSectionTransclusion
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/LabeledSectionTransclusion $MW_HOME/extensions/LabeledSectionTransclusion \
&& cd $MW_HOME/extensions/LabeledSectionTransclusion \
&& git checkout -q 187abfeaafbad35eed4254f7a7ee0638980e932a \
# LDAPAuthentication2
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/LDAPAuthentication2 $MW_HOME/extensions/LDAPAuthentication2 \
&& cd $MW_HOME/extensions/LDAPAuthentication2 \
&& git checkout -q 6bc584893d3157d5180e0e3ed93c3dbbc5b93056 \
# LDAPAuthorization
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/LDAPAuthorization $MW_HOME/extensions/LDAPAuthorization \
&& cd $MW_HOME/extensions/LDAPAuthorization \
&& git checkout -q e6815d29c22f4b4eb85f868372a729ad49d7d3c8 \
# LDAPProvider
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/LDAPProvider $MW_HOME/extensions/LDAPProvider \
&& cd $MW_HOME/extensions/LDAPProvider \
&& git checkout -q 80f8cc8156b0cd250d0dfacd9378ed0db7c2091d \
# Lingo
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/Lingo $MW_HOME/extensions/Lingo \
&& cd $MW_HOME/extensions/Lingo \
&& git checkout -q 173efe9bf715988f9aa4b95ea401613f72774f2a \
# LinkSuggest
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/LinkSuggest $MW_HOME/extensions/LinkSuggest \
&& cd $MW_HOME/extensions/LinkSuggest \
&& git checkout -q 6005d191e35d1d6bed5a4e7bd1bedc5fa0030bf1 \
# LinkTarget
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/LinkTarget $MW_HOME/extensions/LinkTarget \
&& cd $MW_HOME/extensions/LinkTarget \
&& git checkout -q e5d592dcc72a00e06604ee3f65dfb8f99977c156 \
# Linter
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter $MW_HOME/extensions/Linter \
&& cd $MW_HOME/extensions/Linter \
&& git checkout -q 8bc1727955da7468f096aa5c5b5790923db43d20 \
# LockAuthor
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/LockAuthor $MW_HOME/extensions/LockAuthor \
&& cd $MW_HOME/extensions/LockAuthor \
&& git checkout -q 4ebc4f221a0987b64740014a9380e9c3522f271d \
# Lockdown
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Lockdown $MW_HOME/extensions/Lockdown \
&& cd $MW_HOME/extensions/Lockdown \
&& git checkout -q ffcb6e8892ad35bb731fad1dc24712a245ab86d0 \
# LookupUser
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/LookupUser $MW_HOME/extensions/LookupUser \
&& cd $MW_HOME/extensions/LookupUser \
&& git checkout -q 5fa17d449b6bedb3e8cee5b239af6cadae31da70 \
# Loops
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Loops $MW_HOME/extensions/Loops \
&& cd $MW_HOME/extensions/Loops \
&& git checkout -q 0eb05a81b9b53f5381eefb4f8b6959b6dcdec1d8 \
# LuaCache
&& git clone --single-branch -b master https://github.com/HydraWiki/LuaCache.git $MW_HOME/extensions/LuaCache \
&& cd $MW_HOME/extensions/LuaCache \
&& git checkout -q c654dacff3ae177d8ffc3dfd8c4f5e1e1ca7cb2f
# M
RUN set -x; \
cd $MW_HOME/extensions \
# MagicNoCache
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/MagicNoCache $MW_HOME/extensions/MagicNoCache \
&& cd $MW_HOME/extensions/MagicNoCache \
&& git checkout -q 93534c12dac0e821c46c94b21053d274a6e557de \
# MassMessage
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/MassMessage $MW_HOME/extensions/MassMessage \
&& cd $MW_HOME/extensions/MassMessage \
&& git checkout -q d6a86291bb975c3dc7778f370006f1145cc834bd \
# MassMessageEmail
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/MassMessageEmail $MW_HOME/extensions/MassMessageEmail \
&& cd $MW_HOME/extensions/MassMessageEmail \
&& git checkout -q edd96f14c6d108d56bcecb18b5bb7b3355437732 \
# MediaUploader
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/MediaUploader $MW_HOME/extensions/MediaUploader \
&& cd $MW_HOME/extensions/MediaUploader \
&& git checkout -q 1edd91c506c1c0319e7b9a3e71d639130760b1fd \
# MintyDocs (1.0)
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/MintyDocs $MW_HOME/extensions/MintyDocs \
&& cd $MW_HOME/extensions/MintyDocs \
&& git checkout -q 4496e33ce71d2c364b16599619c961a1a330bf14 \
# MobileFrontend
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend $MW_HOME/extensions/MobileFrontend \
&& cd $MW_HOME/extensions/MobileFrontend \
&& git checkout -q 7f9ecd976796d02988b40dff4a790c315d4651e6 \
# MsUpload
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/MsUpload $MW_HOME/extensions/MsUpload \
&& cd $MW_HOME/extensions/MsUpload \
&& git checkout -q 8c2403b09186f5f25f0c28369e6aff3c285047df \
# MyVariables
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/MyVariables $MW_HOME/extensions/MyVariables \
&& cd $MW_HOME/extensions/MyVariables \
&& git checkout -q 8b45be10c9b0a484824c55d8cc48399290384260
# N
RUN set -x; \
cd $MW_HOME/extensions \
# NCBITaxonomyLookup
&& git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NCBITaxonomyLookup $MW_HOME/extensions/NCBITaxonomyLookup \
&& cd $MW_HOME/extensions/NCBITaxonomyLookup \
&& git fetch https://gerrit.wikimedia.org/r/mediawiki/extensions/NCBITaxonomyLookup refs/changes/52/916452/1 \
&& git checkout FETCH_HEAD \
# NewUserMessage
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/NewUserMessage $MW_HOME/extensions/NewUserMessage \
&& cd $MW_HOME/extensions/NewUserMessage \
&& git checkout -q 206f32880fa7bf70b191d33ed80b8626bca39efe \
# NumerAlpha
&& git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NumerAlpha $MW_HOME/extensions/NumerAlpha \
&& cd $MW_HOME/extensions/NumerAlpha \
&& git checkout -q f792da2842527b4f1ea1c12fd3618b0e288276d2
# O
RUN set -x; \
cd $MW_HOME/extensions \
# OpenGraphMeta
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/OpenGraphMeta $MW_HOME/extensions/OpenGraphMeta \
&& cd $MW_HOME/extensions/OpenGraphMeta \
&& git checkout -q d319702cd4ceda1967c233ef8e021b67b3fc355f \
# OpenIDConnect
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/OpenIDConnect $MW_HOME/extensions/OpenIDConnect \
&& cd $MW_HOME/extensions/OpenIDConnect \
&& git checkout -q f193befe9d66249e694fcdaa7b1b2afbf4a2ffde
# P
RUN set -x; \
cd $MW_HOME/extensions \
# PageExchange
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/PageExchange $MW_HOME/extensions/PageExchange \
&& cd $MW_HOME/extensions/PageExchange \
&& git checkout -q 28482410564e38d2b97ab7321e99c4281c6e5877 \
# PageForms (v. 5.6.1)
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/PageForms $MW_HOME/extensions/PageForms \
&& cd $MW_HOME/extensions/PageForms \
&& git checkout -q f90d67ecc2c111e82db454c71592c83384ff9704 \
# PluggableAuth
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/PluggableAuth $MW_HOME/extensions/PluggableAuth \
&& cd $MW_HOME/extensions/PluggableAuth \
&& git checkout -q 1884a127cd5947ad7484d3b55711db3f6515d439 \
# Popups
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups $MW_HOME/extensions/Popups \
&& cd $MW_HOME/extensions/Popups \
&& git checkout -q ff4d2156e1f7f4c11f7396cb0cd70d387abd8187 \
# PagePort
&& git clone --single-branch -b master https://github.com/WikiTeq/PagePort.git $MW_HOME/extensions/PagePort \
&& cd $MW_HOME/extensions/PagePort \
&& git checkout -q b43642914f72a997439608710f010644c25d7ee7
# R
RUN set -x; \
cd $MW_HOME/extensions \
# RegularTooltips
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/RegularTooltips $MW_HOME/extensions/RegularTooltips \
&& cd $MW_HOME/extensions/RegularTooltips \
&& git checkout -q 1af807bb6d5cfbd1e471e38bf70d6a392fb7eda2 \
# RevisionSlider
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider $MW_HOME/extensions/RevisionSlider \
&& cd $MW_HOME/extensions/RevisionSlider \
&& git checkout -q 3cae51a322a5ca0f359e83efcb5fac38e73e346e \
# RottenLinks
&& git clone --single-branch -b master https://github.com/miraheze/RottenLinks.git $MW_HOME/extensions/RottenLinks \
&& cd $MW_HOME/extensions/RottenLinks \
&& git checkout -q a96e99d0a61a42d59587a67db0720ce245a7ee46
# S
RUN set -x; \
cd $MW_HOME/extensions \
# SandboxLink
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/SandboxLink $MW_HOME/extensions/SandboxLink \
&& cd $MW_HOME/extensions/SandboxLink \
&& git checkout -q 9ab23288a010c3894c59cd5ba3096d93d57c15c5 \
# SaveSpinner
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/SaveSpinner $MW_HOME/extensions/SaveSpinner \
&& cd $MW_HOME/extensions/SaveSpinner \
&& git checkout -q 1e819e2fff7fad6999bafe71d866c3af50836c42 \
# SemanticDependencyUpdater (WikiTeq fork)
&& git clone --single-branch -b old-master https://github.com/WikiTeq/SemanticDependencyUpdater.git $MW_HOME/extensions/SemanticDependencyUpdater \
&& cd $MW_HOME/extensions/SemanticDependencyUpdater \
&& git checkout -q 3eedd54d4b4d4bfb6f15c2f56162b38095ebdb4c \
# SemanticDrilldown
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/SemanticDrilldown $MW_HOME/extensions/SemanticDrilldown \
&& cd $MW_HOME/extensions/SemanticDrilldown \
&& git checkout -q e960979ec5a3b1e662b3742cee7e7ef4056f9a46 \
# SimpleChanges
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/SimpleChanges $MW_HOME/extensions/SimpleChanges \
&& cd $MW_HOME/extensions/SimpleChanges \
&& git checkout -q 5352de89dfaf043f646a44582b26f07822f02be7 \
# SimpleMathJax
&& git clone --single-branch https://github.com/jmnote/SimpleMathJax.git $MW_HOME/extensions/SimpleMathJax \
&& cd $MW_HOME/extensions/SimpleMathJax \
&& git checkout -q fab35e6ac66e1f5abd3c91a57719f8180dd346ef \
# SkinPerPage
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/SkinPerPage $MW_HOME/extensions/SkinPerPage \
&& cd $MW_HOME/extensions/SkinPerPage \
&& git checkout -q 31ecd2d0d4515d44cbef540ce219fb8d019bb6b1 \
# SmiteSpam
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/SmiteSpam $MW_HOME/extensions/SmiteSpam \
&& cd $MW_HOME/extensions/SmiteSpam \
&& git checkout -q 268f212b7e366711d8e7b54c7faf5b750fa014ad
# T
RUN set -x; \
cd $MW_HOME/extensions \
# TemplateStyles
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles $MW_HOME/extensions/TemplateStyles \
&& cd $MW_HOME/extensions/TemplateStyles \
&& git checkout -q 2a93b56e370ab8b8e020ed29c507104b56f1d11a \
# TemplateWizard
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateWizard $MW_HOME/extensions/TemplateWizard \
&& cd $MW_HOME/extensions/TemplateWizard \
&& git checkout -q d486e3475f84118fd9b5c77d60254daa2f56f654 \
# Thanks
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks $MW_HOME/extensions/Thanks \
&& cd $MW_HOME/extensions/Thanks \
&& git checkout -q 03b6a52f263604c819e69b78c157f6ef5adb053e \
# TimedMediaHandler
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/TimedMediaHandler $MW_HOME/extensions/TimedMediaHandler \
&& cd $MW_HOME/extensions/TimedMediaHandler \
&& git checkout -q 2e64302c68e58693650e91b7869fa5aecf1aaf23 \
# TinyMCE
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/TinyMCE $MW_HOME/extensions/TinyMCE \
&& cd $MW_HOME/extensions/TinyMCE \
&& git checkout -q 06436ec3a53c6cd53c458e4e8ab3ec8d1a23029b \
# TitleIcon
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleIcon $MW_HOME/extensions/TitleIcon \
&& cd $MW_HOME/extensions/TitleIcon \
&& git checkout -q 7c6c83f4859642542393612ad961a258378e0cac
# U
RUN set -x; \
cd $MW_HOME/extensions \
# UniversalLanguageSelector
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/UniversalLanguageSelector $MW_HOME/extensions/UniversalLanguageSelector \
&& cd $MW_HOME/extensions/UniversalLanguageSelector \
&& git checkout -q 8216e434c38ddeba74e5ad758bfbbcc83861fa60 \
# UploadWizard
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/UploadWizard $MW_HOME/extensions/UploadWizard \
&& cd $MW_HOME/extensions/UploadWizard \
&& git checkout -q 847413694b519c76da7196023651c8d584137d2f \
# UrlGetParameters
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/UrlGetParameters $MW_HOME/extensions/UrlGetParameters \
&& cd $MW_HOME/extensions/UrlGetParameters \
&& git checkout -q d36f92810c762b301035ff1b4f42792ed9a1018b \
# UserFunctions
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/UserFunctions $MW_HOME/extensions/UserFunctions \
&& cd $MW_HOME/extensions/UserFunctions \
&& git checkout -q b532b1047080c3738327ee2f3b541e563e06ca19 \
# UserMerge
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/UserMerge $MW_HOME/extensions/UserMerge \
&& cd $MW_HOME/extensions/UserMerge \
&& git checkout -q 183bb7a8f78cbe365bec0fbd4b3ecdd4fae1a359 \
# UserPageViewTracker (v. 0.7)
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/UserPageViewTracker $MW_HOME/extensions/UserPageViewTracker \
&& cd $MW_HOME/extensions/UserPageViewTracker \
&& git checkout -q f4b7c20c372165541164d449c12df1e74e98ed0b
# V
RUN set -x; \
cd $MW_HOME/extensions \
# Variables
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Variables $MW_HOME/extensions/Variables \
&& cd $MW_HOME/extensions/Variables \
&& git checkout -q b4a9063f16a928567e3b6788cda9246c2e94797f \
# VEForAll (v. 0.5.1)
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/VEForAll $MW_HOME/extensions/VEForAll \
&& cd $MW_HOME/extensions/VEForAll \
&& git checkout -q 85a4b8e57bd61c81fbf810e4f858d3a220181b4f \
# VoteNY
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/VoteNY $MW_HOME/extensions/VoteNY \
&& cd $MW_HOME/extensions/VoteNY \
&& git checkout -q 11c103f4b9167a8d8d5e850d8a781c6f49b249c1
# W
RUN set -x; \
cd $MW_HOME/extensions \
# WatchAnalytics (v. 4.1.2)
&& git clone --single-branch -b master https://gerrit.wikimedia.org/r/mediawiki/extensions/WatchAnalytics $MW_HOME/extensions/WatchAnalytics \
&& cd $MW_HOME/extensions/WatchAnalytics \
&& git checkout -q 72b70a667a26bbde0a3cf93fc79747aae08fca32 \
# WhoIsWatching
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/WhoIsWatching $MW_HOME/extensions/WhoIsWatching \
&& cd $MW_HOME/extensions/WhoIsWatching \
&& git checkout -q 836a31018e26ab7c993088c4cca31a89efec2ee5 \
# Widgets
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Widgets $MW_HOME/extensions/Widgets \
&& cd $MW_HOME/extensions/Widgets \
&& git checkout -q 197d429f971b2aebbce29b7a91a194e1f8181e64 \
# WikiForum
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiForum $MW_HOME/extensions/WikiForum \
&& cd $MW_HOME/extensions/WikiForum \
&& git checkout -q a2685b60af86890f199a5f3b6581918369e6a571 \
# WikiSEO
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiSEO $MW_HOME/extensions/WikiSEO \
&& cd $MW_HOME/extensions/WikiSEO \
&& git checkout -q 610cffa3345333b53d4dda7b55b2012fbfcee9de \
# WSOAuth
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/WSOAuth $MW_HOME/extensions/WSOAuth \
&& cd $MW_HOME/extensions/WSOAuth \
&& git checkout -q 3c54c4899dd63989bc3214273bf1c5807c7ac5db
#### WikiTeq extensions ####
# B
RUN set -x; \
cd $MW_HOME/extensions \
# Buggy
&& git clone --single-branch -b $MW_VERSION https://github.com/wikimedia/mediawiki-extensions-Buggy.git $MW_HOME/extensions/Buggy \
&& cd $MW_HOME/extensions/Buggy \
&& git checkout -q 768d2ec62de692ab62fc0c9f1820e22058d09d4b
# C
RUN set -x; \
cd $MW_HOME/extensions \
# ChangeAuthor
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/ChangeAuthor $MW_HOME/extensions/ChangeAuthor \
&& cd $MW_HOME/extensions/ChangeAuthor \
&& git checkout -q c297a88407c6dea60dfa03b1a7d5f4cd78d9e0c9 \
# Citoid
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Citoid $MW_HOME/extensions/Citoid \
&& cd $MW_HOME/extensions/Citoid \
&& git checkout -q 1e605c7d89368c334cbe83b4da8e1b6d72ae9c33
# D
RUN set -x; \
cd $MW_HOME/extensions \
# DiscussionTools
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools $MW_HOME/extensions/DiscussionTools \
&& cd $MW_HOME/extensions/DiscussionTools \
&& git checkout -q c667c3c020a61010a7598438a8122f015678b242
# E
RUN set -x; \
cd $MW_HOME/extensions \
# EditAccount
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/EditAccount $MW_HOME/extensions/EditAccount \
&& cd $MW_HOME/extensions/EditAccount \
&& git checkout -q a9a0d7002483d2165300afd108a8f4b3c2c485ff \
# Flow
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Flow $MW_HOME/extensions/Flow \
&& cd $MW_HOME/extensions/Flow \
&& git checkout -q fc6af96ab80e9c4da4b4cb8dde313f1d718f71b5
# G
RUN set -x; \
cd $MW_HOME/extensions \
# GoogleDocTag
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/GoogleDocTag $MW_HOME/extensions/GoogleDocTag \
&& cd $MW_HOME/extensions/GoogleDocTag \
&& git checkout -q b71c875b033f79e17a54e6fccd2bfde26bff9163 \
# GTag
&& git clone https://github.com/SkizNet/mediawiki-GTag.git $MW_HOME/extensions/GTag \
&& cd $MW_HOME/extensions/GTag \
&& git checkout -q 5b3ac10946e8242da5d63d981875e4dad3e14f9d
# H
RUN set -x; \
cd $MW_HOME/extensions \
# HeadScript
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/HeadScript $MW_HOME/extensions/HeadScript \
&& cd $MW_HOME/extensions/HeadScript \
&& git checkout -q 168f588f5f7895b1ebe99a14e4eeb97bb03c8b6b
# I
RUN set -x; \
cd $MW_HOME/extensions \
# IframePage
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/IframePage $MW_HOME/extensions/IframePage \
&& cd $MW_HOME/extensions/IframePage \
&& git checkout -q 8010e02bab480ccecf2db828c187d90ed027c563
# L
RUN set -x; \
cd $MW_HOME/extensions \
# Lazyload
&& git clone https://github.com/mudkipme/mediawiki-lazyload.git $MW_HOME/extensions/Lazyload \
&& cd $MW_HOME/extensions/Lazyload \
&& git checkout -b $MW_VERSION 30a01cc149822353c9404ec178ec01848bae65c5 \
# LiquidThreads
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/LiquidThreads $MW_HOME/extensions/LiquidThreads \
&& cd $MW_HOME/extensions/LiquidThreads \
&& git checkout -q 00d4cfb74c18e6524dc2c16347229fffef7043f7
# M
RUN set -x; \
cd $MW_HOME/extensions \
# MassPasswordReset
&& cd $MW_HOME/extensions \
&& git clone https://github.com/nischayn22/MassPasswordReset.git \
&& cd MassPasswordReset \
&& git checkout -b $MW_VERSION 04b7e765db994d41f5ca3a910e18f77105218d94 \
# MobileDetect
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileDetect $MW_HOME/extensions/MobileDetect \
&& cd $MW_HOME/extensions/MobileDetect \
&& git checkout -q ccb0bdd7fa77d33adcfd2401c69e771c942df639 \
# Mpdf
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Mpdf.git $MW_HOME/extensions/Mpdf \
&& cd $MW_HOME/extensions/Mpdf \
&& git checkout -q fb6ff534526f3b9a554cc4172db6e3715adfef36
# P
RUN set -x; \
cd $MW_HOME/extensions \
# PageSchemas
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/PageSchemas $MW_HOME/extensions/PageSchemas \
&& cd $MW_HOME/extensions/PageSchemas \
&& git checkout -q a8d117c111f08869f542b6a6b15ba7ca4e93d8b5 \
# PDFEmbed
&& git clone https://github.com/WolfgangFahl/PDFEmbed.git $MW_HOME/extensions/PDFEmbed \
&& cd $MW_HOME/extensions/PDFEmbed \
&& git checkout -q 2b07a1c18cef4794f4cb2429baa2d55fdb2beed3 \
# PubmedParser
&& cd $MW_HOME/extensions \
&& git clone https://github.com/bovender/PubmedParser.git \
&& cd PubmedParser \
&& git checkout -b $MW_VERSION b77635651cc8ef2d39fd0f04fe73285c4ea3cd19
# S
RUN set -x; \
cd $MW_HOME/extensions \
# Scopus
&& git clone https://github.com/nischayn22/Scopus.git $MW_HOME/extensions/Scopus \
&& cd $MW_HOME/extensions/Scopus \
&& git checkout -b $MW_VERSION 4fe8048459d9189626d82d9d93a0d5f906c43746 \
# SelectCategory
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/SelectCategory $MW_HOME/extensions/SelectCategory \
&& cd $MW_HOME/extensions/SelectCategory \
&& git checkout -q 072f7a5df0346f4f4fccaf54510641e0a0ce2922 \
# SemanticQueryInterface
&& git clone https://github.com/vedmaka/SemanticQueryInterface.git $MW_HOME/extensions/SemanticQueryInterface \
&& cd $MW_HOME/extensions/SemanticQueryInterface \
&& git checkout -b $MW_VERSION 0016305a95ecbb6ed4709bfa3fc6d9995d51336f \
&& mv SemanticQueryInterface/* . \
&& rmdir SemanticQueryInterface \
&& ln -s SQI.php SemanticQueryInterface.php \
&& rm -fr .git \
# Sentry (WikiTeq fork that uses sentry/sentry 3.x)
&& git clone --single-branch -b master https://github.com/WikiTeq/mediawiki-extensions-Sentry.git $MW_HOME/extensions/Sentry \
&& cd $MW_HOME/extensions/Sentry \
&& git checkout -q 9d9162d83f921b66f6c14ed354d20607ecafa030 \
# ShowMe
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/ShowMe $MW_HOME/extensions/ShowMe \
&& cd $MW_HOME/extensions/ShowMe \
&& git checkout -q 4190783befb0d440bb61149728cd7399a862c0fc \
# SimpleTooltip
&& git clone https://github.com/Universal-Omega/SimpleTooltip.git $MW_HOME/extensions/SimpleTooltip \
&& cd $MW_HOME/extensions/SimpleTooltip \
&& git checkout -b $MW_VERSION a918f4a6f095e9d8cc9fde0efad7acef472d2e94 \
# SimpleTippy
&& git clone https://github.com/vedmaka/mediawiki-extension-SimpleTippy.git $MW_HOME/extensions/SimpleTippy \
&& cd $MW_HOME/extensions/SimpleTippy \
&& git checkout -b $MW_VERSION 271d5e3340e63627058081acc641ec2623eee9dd \
# Skinny
&& git clone https://github.com/tinymighty/skinny.git $MW_HOME/extensions/Skinny \
&& cd $MW_HOME/extensions/Skinny \
&& git checkout -b $MW_VERSION 512e07818556e9b9baa07154371dab3201bfb435 \
# SkinPerNamespace
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/SkinPerNamespace $MW_HOME/extensions/SkinPerNamespace \
&& cd $MW_HOME/extensions/SkinPerNamespace \
&& git checkout -q 14762eadecd791904886aa15fa5a2f845dc005f0 \
# Survey
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Survey $MW_HOME/extensions/Survey \
&& cd $MW_HOME/extensions/Survey \
&& git checkout -q a723508305d618623615f324f90755c4a8b74bbf
# T
RUN set -x; \
cd $MW_HOME/extensions \
# Tabber
&& git clone https://gitlab.com/hydrawiki/extensions/Tabber.git $MW_HOME/extensions/Tabber \
&& cd $MW_HOME/extensions/Tabber \
&& git checkout -b $MW_VERSION 6c67baf4d18518fa78e07add4c032d62dd384b06 \
# TabberNeue
&& git clone https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git $MW_HOME/extensions/TabberNeue \
&& cd $MW_HOME/extensions/TabberNeue \
&& git checkout -b $MW_VERSION 7f04013085a2d80304849b978fc94bb472bf0b36 \
# Tabs
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/Tabs $MW_HOME/extensions/Tabs \
&& cd $MW_HOME/extensions/Tabs \
&& git checkout -q f2187a37d14d67543380576366f1f07a26078ddd \
# TwitterTag
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/TwitterTag $MW_HOME/extensions/TwitterTag \
&& cd $MW_HOME/extensions/TwitterTag \
&& git checkout -q 0f22e65539d0e96a71c1e4694614d7c14860f524
# U
RUN set -x; \
cd $MW_HOME/extensions \
# UploadWizardExtraButtons
&& git clone https://github.com/vedmaka/mediawiki-extension-UploadWizardExtraButtons.git $MW_HOME/extensions/UploadWizardExtraButtons \
&& cd $MW_HOME/extensions/UploadWizardExtraButtons \
&& git checkout -b $MW_VERSION accba1b9b6f50e67d709bd727c9f4ad6de78c0c0
# Y
RUN set -x; \
cd $MW_HOME/extensions \
# YouTube
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/YouTube $MW_HOME/extensions/YouTube \
&& cd $MW_HOME/extensions/YouTube \
&& git checkout -q 7ed328ab60779938eb1557d54d7d8454012df08c
# G
RUN set -x; \
cd $MW_HOME/extensions \
# GoogleLogin
&& git clone --single-branch -b $MW_VERSION https://gerrit.wikimedia.org/r/mediawiki/extensions/GoogleLogin $MW_HOME/extensions/GoogleLogin \
&& cd $MW_HOME/extensions/GoogleLogin \
# TODO Switch to the REL1_XX branch when the patches are merged, WIK-1434
&& git fetch https://gerrit.wikimedia.org/r/mediawiki/extensions/GoogleLogin refs/changes/30/1074530/2 \
&& git checkout FETCH_HEAD
# V
RUN set -x; \
cd $MW_HOME/extensions \
# VariablesLue
&& git clone --single-branch -b master https://github.com/Liquipedia/VariablesLua.git $MW_HOME/extensions/VariablesLua \
&& cd $MW_HOME/extensions/VariablesLua \
&& git checkout -q dced585ef5ddcfbaa49c510c49c3b398ecc6f1c6
# W
RUN set -x; \
cd $MW_HOME/extensions \
# WSSlots
&& git clone --single-branch -b master https://github.com/Open-CSP/WSSlots.git $MW_HOME/extensions/WSSlots \
&& cd $MW_HOME/extensions/WSSlots \
&& git checkout -q dfdcd6adea3fae512c4469704ef93accff83937f
# J
RUN set -x; \
cd $MW_HOME/extensions \
# JWTAuth
&& git clone --single-branch -b main https://github.com/jeffw16/JWTAuth.git $MW_HOME/extensions/JWTAuth \
&& cd $MW_HOME/extensions/JWTAuth \
&& git checkout -q c7c0730160a84d6b60e3e1b6b108d790972f0f15 # Upgrade carefully, we had a problem with version 2.0, see MITE-50
# WikiTeq removes/fixes the extensions with issues in Canasta docker image, remove it if fixed in Canasta
RUN set -x; \
# Include the "Use correct load flag for getTitleOrPageId" fix
cd $MW_HOME/extensions/CommentStreams \
&& git fetch \
&& git checkout -q 567178f0eac7172536aac4aea20f4cd97b8ad891 \
# does not work? see WIK-702?focusedCommentId=41955
&& rm -fr $MW_HOME/extensions/TimedMediaHandler \
# missed in Canasta
&& cd $MW_HOME/extensions/EmailAuthorization \
&& git submodule update --init --recursive
################# Patches #################
# WikiTeq AL-12
COPY _sources/patches/FlexDiagrams.0.4.fix.diff /tmp/FlexDiagrams.0.4.fix.diff
RUN set -x; \
cd $MW_HOME/extensions/FlexDiagrams \
&& git apply /tmp/FlexDiagrams.0.4.fix.diff
# PageForms WLDR-319, WLDR-318
COPY _sources/patches/PF.5.6.usedisplaytitle.autocomplete.forminput.diff /tmp/PF.5.6.usedisplaytitle.autocomplete.forminput.diff
RUN set -x; \
cd $MW_HOME/extensions/PageForms \
&& git apply /tmp/PF.5.6.usedisplaytitle.autocomplete.forminput.diff \
# WLDR-303
&& [email protected] git cherry-pick -x 94ceca65c23a2894da1a26445077c786671aef0c
# Fixes PHP parsoid errors when user replies on a flow message, see https://phabricator.wikimedia.org/T260648#6645078
COPY _sources/patches/flow-conversion-utils.patch /tmp/flow-conversion-utils.patch
RUN set -x; \
cd $MW_HOME/extensions/Flow \
&& git apply /tmp/flow-conversion-utils.patch
# Cleanup all .git leftovers
RUN set -x; \
cd $MW_HOME/extensions \
&& find . \( -name ".git" -o -name ".gitignore" -o -name ".gitmodules" -o -name ".gitattributes" \) -exec rm -rf -- {} +
FROM base AS composer
# Copy core, skins and extensions
COPY --from=core $MW_HOME $MW_HOME
COPY --from=skins $MW_HOME/skins $MW_HOME/skins
COPY --from=extensions $MW_HOME/extensions $MW_HOME/extensions
# Composer dependencies
COPY _sources/configs/composer.wikiteq.json $MW_HOME/composer.local.json
# Run with secret mounted to /run/secrets/COMPOSER_TOKEN
# This is needed to bypass rate limits
RUN --mount=type=secret,id=COMPOSER_TOKEN cd $MW_HOME \
&& cp composer.json composer.json.bak \
&& cat composer.json.bak | jq '. + {"minimum-stability": "dev"}' > composer.json \
&& rm composer.json.bak \
&& cp composer.json composer.json.bak \
&& cat composer.json.bak | jq '. + {"prefer-stable": true}' > composer.json \
&& rm composer.json.bak \
&& composer clear-cache \
# configure auth
&& if [ -f "/run/secrets/COMPOSER_TOKEN" ]; then composer config -g github-oauth.github.com $(cat /run/secrets/COMPOSER_TOKEN); fi \
&& composer update --no-dev --with-dependencies \
&& composer clear-cache \
# deauth