Skip to content

Commit edec366

Browse files
committed
build: add user agent to curl for releases.wikimedia.org
1 parent 9f3a756 commit edec366

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/wikibase/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ RUN { \
9898
# MediaWiki setup
9999
WORKDIR /var/www/html
100100
ARG MEDIAWIKI_VERSION
101+
# Set the user agent as releases.wikimedia.org will 403 us otherwise
101102
# hadolint ignore=DL4006
102103
RUN set -eux; \
103-
curl -fSL "https://releases.wikimedia.org/mediawiki/$(echo ${MEDIAWIKI_VERSION} | cut -d. -f1,2)/mediawiki-${MEDIAWIKI_VERSION}.tar.gz" -o mediawiki.tar.gz; \
104+
curl -A "Mozilla/5.0" -fSL "https://releases.wikimedia.org/mediawiki/$(echo ${MEDIAWIKI_VERSION} | cut -d. -f1,2)/mediawiki-${MEDIAWIKI_VERSION}.tar.gz" -o mediawiki.tar.gz; \
104105
tar -x --strip-components=1 -f mediawiki.tar.gz; \
105106
rm -r mediawiki.tar.gz; \
106107
install -d /var/log/mediawiki -o www-data

0 commit comments

Comments
 (0)