summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorubuntu <ubuntu@ubunu2004.linuxvmimagrs.local>2021-05-31 19:08:05 +0530
committerubuntu <ubuntu@ubunu2004.linuxvmimagrs.local>2021-05-31 19:08:05 +0530
commit323f0325edb387a447e5b5fedc852bb6971a0286 (patch)
tree7fac9dfba3acbf6cda83e47a5b9308a6ba4952a5 /build
parent4abc5cfb4b3dea54484ca49a584b472a7373f3c5 (diff)
downloadthrift-323f0325edb387a447e5b5fedc852bb6971a0286.tar.gz
Add unit test for system locale with thousands separator comma
Install en_US.UTF-8 locale in Dockerfile
Diffstat (limited to 'build')
-rw-r--r--build/docker/ubuntu-bionic/Dockerfile7
-rw-r--r--build/docker/ubuntu-disco/Dockerfile7
-rw-r--r--build/docker/ubuntu-xenial/Dockerfile7
3 files changed, 21 insertions, 0 deletions
diff --git a/build/docker/ubuntu-bionic/Dockerfile b/build/docker/ubuntu-bionic/Dockerfile
index 291aa5dbc..0407a6fff 100644
--- a/build/docker/ubuntu-bionic/Dockerfile
+++ b/build/docker/ubuntu-bionic/Dockerfile
@@ -253,6 +253,13 @@ RUN cd / && \
rm swift-5.1.4-RELEASE-ubuntu18.04.tar.gz && \
swift --version
+# Locale(s) for cpp unit tests
+RUN apt-get install -y --no-install-recommends \
+`# Locale dependencies` \
+ locales && \
+ locale-gen en_US.UTF-8 && \
+ update-locale
+
# cppcheck-1.82 has a nasty cpp parser bug, so we're using something newer
RUN apt-get install -y --no-install-recommends \
`# Static Code Analysis dependencies` \
diff --git a/build/docker/ubuntu-disco/Dockerfile b/build/docker/ubuntu-disco/Dockerfile
index 9775fbb75..a175ed555 100644
--- a/build/docker/ubuntu-disco/Dockerfile
+++ b/build/docker/ubuntu-disco/Dockerfile
@@ -255,6 +255,13 @@ ENV PATH /root/.cargo/bin:$PATH
# rm swift-4.2.1-RELEASE-ubuntu18.04.tar.gz && \
# swift --version
+# Locale(s) for cpp unit tests
+RUN apt-get install -y --no-install-recommends \
+`# Locale dependencies` \
+ locales && \
+ locale-gen en_US.UTF-8 && \
+ update-locale
+
# cppcheck-1.82 has a nasty cpp parser bug, so we're using something newer
# don't need this on disco, nobody uses it
# RUN apt-get install -y --no-install-recommends \
diff --git a/build/docker/ubuntu-xenial/Dockerfile b/build/docker/ubuntu-xenial/Dockerfile
index 62da2c471..1c4373e44 100644
--- a/build/docker/ubuntu-xenial/Dockerfile
+++ b/build/docker/ubuntu-xenial/Dockerfile
@@ -235,6 +235,13 @@ RUN apt-get install -y --no-install-recommends \
# Rust dependencies
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.40.0 -y
+# Locale(s) for cpp unit tests
+RUN apt-get install -y --no-install-recommends \
+`# Locale dependencies` \
+ locales && \
+ locale-gen en_US.UTF-8 && \
+ update-locale
+
# Clean up
RUN rm -rf /var/cache/apt/* && \
rm -rf /var/lib/apt/lists/* && \