Skip to content

Commit 04fc0ba

Browse files
authored
Speed up extension cloning
1 parent bd4a887 commit 04fc0ba

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Dockerfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ bash clone-extension.sh Math ${WMF_BRANCH};\
4040
# Here, we store MaRDI-specific code.
4141
bash clone-extension.sh MathSearch master;\
4242
bash clone-extension.sh Nuke ${WMF_BRANCH};\
43-
bash clone-extension.sh OAuth ${WMF_BRANCH};\
44-
bash clone-extension.sh Popups ${WMF_BRANCH};\
43+
bash -extension.sh OAuth ${WMF_BRANCH};\
44+
bash -extension.sh Popups ${WMF_BRANCH};\
4545
bash clone-extension.sh Scribunto ${WMF_BRANCH};\
4646
bash clone-extension.sh TemplateStyles ${WMF_BRANCH};\
4747
bash clone-extension.sh UniversalLanguageSelector ${WMF_BRANCH};\
@@ -61,26 +61,27 @@ bash clone-extension.sh Thanks ${WMF_BRANCH};\
6161
bash clone-extension.sh LinkedWiki ${REL_BRANCH}
6262

6363
# clone extensions not officially distributed by mediawiki
64-
RUN git clone https://github.com/ProfessionalWiki/WikibaseLocalMedia.git WikibaseLocalMedia &&\
64+
RUN git clone --depth=1 https://github.com/ProfessionalWiki/WikibaseLocalMedia.git WikibaseLocalMedia &&\
6565
rm -rf WikibaseLocalMedia/.git
6666

67-
RUN git clone https://github.com/ProfessionalWiki/WikibaseExport.git WikibaseExport &&\
67+
RUN git clone --depth=1 https://github.com/ProfessionalWiki/WikibaseExport.git WikibaseExport &&\
6868
rm -rf WikibaseExport/.git
6969

70-
RUN git clone https://github.com/MaRDI4NFDI/MatomoAnalytics.git MatomoAnalytics &&\
70+
RUN git clone --depth=1 https://github.com/MaRDI4NFDI/MatomoAnalytics.git MatomoAnalytics &&\
7171
rm -rf MatomoAnalytics/.git
7272

73-
RUN git clone https://github.com/ProfessionalWiki/ExternalContent.git ExternalContent &&\
73+
RUN git clone --depth=1 https://github.com/ProfessionalWiki/ExternalContent.git ExternalContent &&\
7474
rm -rf ExternalContent/.git
7575

76-
RUN git clone https://github.com/SemanticMediaWiki/SemanticDrilldown.git SemanticDrilldown &&\
76+
RUN git clone --depth=1 https://github.com/SemanticMediaWiki/SemanticDrilldown.git SemanticDrilldown &&\
7777
rm -rf SemanticDrilldown/.git
7878

79-
RUN git clone https://github.com/wikimedia/mediawiki -b ${WMF_BRANCH} &&\
79+
# clone core
80+
RUN git clone --depth=1 https://github.com/wikimedia/mediawiki -b ${WMF_BRANCH} &&\
8081
rm -rf mediawiki/.git
8182

8283
# Clone Vector Skin (not included in the mediawiki repository)
83-
RUN git clone https://github.com/wikimedia/mediawiki-skins-Vector -b ${WMF_BRANCH} Vector &&\
84+
RUN git clone --depth=1 https://github.com/wikimedia/mediawiki-skins-Vector -b ${WMF_BRANCH} Vector &&\
8485
rm -rf Vector/.git
8586

8687

0 commit comments

Comments
 (0)