Skip to content

Commit

Permalink
Set the locale in the Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Apr 8, 2021
1 parent 9905ad9 commit fed8e1f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN apt-get -qqy update \
wget \
git \
build-essential \
locales \
openssh-client \
p7zip-full \
python \
Expand All @@ -30,6 +31,13 @@ RUN apt-get -qqy update \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*


# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

ENV TZ "UTC"
RUN echo "${TZ}" > /etc/timezone \
&& dpkg-reconfigure --frontend noninteractive tzdata
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ Timeouts and attempt counters
At various points, these tests wait for fixed periods of time or attempt to
perform some action a fixed number of times before giving up the attempt. The
variables holding these *wait* and *attempt* values are listed with their
defaults in `features/environment.py <features/environment.py`_, e.g.,
defaults in `features/environment.py <features/environment.py>`_, e.g.,
``MAX_DOWNLOAD_AIP_ATTEMPTS``. If you find that tests are failing because of
timeouts being exceeded, or conversely that tests that should be failing are
waiting too long for an event that will never happen, you can modify these
Expand Down

0 comments on commit fed8e1f

Please sign in to comment.