1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-16 21:35:24 +00:00

Set locale in docker container

Install libmicrohttpd which are used for (currently disabled) functional
tests).
Install glibc-locale to get the locales.

Unit test for `prof_whole_occurrences_tests` uses UTF-8 character and
fails without proper locale being set.
This commit is contained in:
Michael Vetter 2019-04-14 10:39:24 +02:00
parent b40fcf248c
commit 0857b5ee4e
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,9 @@
# Build the latest openSUSE Tumbleweed image
FROM opensuse/tumbleweed
# expect - for functional tests
# libmicrohttpd - for stabber
# glibc-locale - to have en_US locale
RUN zypper --non-interactive in --no-recommends \
git \
gcc \
@ -11,6 +14,7 @@ RUN zypper --non-interactive in --no-recommends \
libtool \
glib2-devel \
gtk2-devel \
expect-devel \
libXss-devel \
libcurl-devel \
libexpat-devel \
@ -28,7 +32,13 @@ RUN zypper --non-interactive in --no-recommends \
readline-devel \
libsignal-protocol-c-devel \
libgcrypt-devel \
libmicrohttpd-devel
libmicrohttpd-devel \
glibc-locale
# https://github.com/openSUSE/docker-containers-build/issues/26
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN mkdir -p /usr/src
WORKDIR /usr/src

View File

@ -133,4 +133,3 @@ make
make check
./profanity -v
make clean