Skip to content

Commit

Permalink
docker: Set XDG_DATA_HOME in tox image
Browse files Browse the repository at this point in the history
To workaround a virtualenv 20 bug: <pypa/virtualenv#1640>

Change-Id: I58dc7ce30399410910423fc1f6faf2b0993f7c56
  • Loading branch information
legoktm committed Feb 15, 2020
1 parent 4377554 commit b525f2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dockerfiles/tox/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ RUN {{ packages | apt_install }} \
&& rm -fR "$XDG_CACHE_HOME/pip"

USER nobody
# workaround https://github.com/pypa/virtualenv/issues/1640
ENV XDG_DATA_HOME=/tmp
WORKDIR /src
ENTRYPOINT ["/run.sh"]
COPY run.sh /run.sh
6 changes: 6 additions & 0 deletions dockerfiles/tox/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
tox (0.4.3) wikimedia; urgency=medium

* Set XDG_DATA_HOME=/tmp to work around a virtualenv 20 issue.

-- Kunal Mehta <[email protected]> Sat, 15 Feb 2020 15:41:49 -0800

tox (0.4.2) wikimedia; urgency=medium

* Install gettext for WMCZ Tracker (T241685)
Expand Down

0 comments on commit b525f2e

Please sign in to comment.