Skip to content

Commit 0b34812

Browse files
authored
Use 'en-us' in all Dockerfiles and Gradle Test tasks (apache#1214)
Fixes apache#885 Supersedes apache#886
1 parent e9bd20d commit 0b34812

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

build-logic/src/main/kotlin/polaris-java.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,14 @@ dependencies {
137137
)
138138
}
139139

140-
tasks.withType(Jar::class).configureEach {
140+
tasks.withType<Test>().configureEach {
141+
systemProperty("file.encoding", "UTF-8")
142+
systemProperty("user.language", "en")
143+
systemProperty("user.country", "US")
144+
systemProperty("user.variant", "")
145+
}
146+
147+
tasks.withType<Jar>().configureEach {
141148
manifest {
142149
attributes(
143150
// Do not add any (more or less) dynamic information to jars, because that makes Gradle's

getting-started/spark/notebooks/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
FROM jupyter/all-spark-notebook:spark-3.5.0
2121

22+
ENV LANGUAGE='en_US:en'
23+
2224
COPY --chown=jovyan client /home/jovyan/client
2325
COPY --chown=jovyan regtests/requirements.txt /tmp
2426
RUN pip install -r /tmp/requirements.txt && \

quarkus/defaults/src/main/resources/application.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,7 @@ quarkus.index-dependency.guava.group-id=com.google.guava
159159
quarkus.index-dependency.guava.artifact-id=guava
160160
quarkus.index-dependency.protobuf.group-id=com.google.protobuf
161161
quarkus.index-dependency.protobuf.artifact-id=protobuf-java
162+
163+
# force the locale, just in case the system's using another default locale
164+
quarkus.default-locale=en_US
165+

regtests/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ FROM docker.io/apache/spark:3.5.5-java17-python3
2121
ARG POLARIS_HOST=polaris
2222
ENV POLARIS_HOST=$POLARIS_HOST
2323
ENV SPARK_HOME=/opt/spark
24+
ENV LANGUAGE='en_US:en'
2425

2526
USER root
2627
RUN apt update

site/docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
FROM ubuntu:24.04 AS hugo
2121

22+
ENV LANGUAGE='en_US:en'
23+
2224
RUN apt-get update
2325
RUN apt-get install --yes golang hugo asciidoctor npm curl
2426
RUN apt-get clean

0 commit comments

Comments
 (0)