Skip to content

Commit

Permalink
Ensure /etc/locale.gen is updated before running locale-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Jul 2, 2024
1 parent 9c6ef76 commit 2c69dfc
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 30 deletions.
3 changes: 1 addition & 2 deletions src/engines/jruby/9.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (`eclipse-temurin` already updated `/etc/locale.gen` for `en_US.UTF-8`)
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
3 changes: 1 addition & 2 deletions src/engines/jruby/9.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (`eclipse-temurin` already updated `/etc/locale.gen` for `en_US.UTF-8`)
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
3 changes: 1 addition & 2 deletions src/engines/jruby/9.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (`eclipse-temurin` already updated `/etc/locale.gen` for `en_US.UTF-8`)
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
4 changes: 2 additions & 2 deletions src/engines/ruby/2.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev gcc git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (Uncomment `en_US.UTF-8` from `/etc/locale.gen` before running `locale-gen`)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
4 changes: 2 additions & 2 deletions src/engines/ruby/2.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev gcc git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (Uncomment `en_US.UTF-8` from `/etc/locale.gen` before running `locale-gen`)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
4 changes: 2 additions & 2 deletions src/engines/ruby/2.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (Uncomment `en_US.UTF-8` from `/etc/locale.gen` before running `locale-gen`)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
4 changes: 2 additions & 2 deletions src/engines/ruby/2.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (Uncomment `en_US.UTF-8` from `/etc/locale.gen` before running `locale-gen`)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
4 changes: 2 additions & 2 deletions src/engines/ruby/2.5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (Uncomment `en_US.UTF-8` from `/etc/locale.gen` before running `locale-gen`)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
4 changes: 2 additions & 2 deletions src/engines/ruby/2.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (Uncomment `en_US.UTF-8` from `/etc/locale.gen` before running `locale-gen`)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
4 changes: 2 additions & 2 deletions src/engines/ruby/2.7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (Uncomment `en_US.UTF-8` from `/etc/locale.gen` before running `locale-gen`)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
4 changes: 2 additions & 2 deletions src/engines/ruby/3.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (Uncomment `en_US.UTF-8` from `/etc/locale.gen` before running `locale-gen`)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
4 changes: 2 additions & 2 deletions src/engines/ruby/3.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (Uncomment `en_US.UTF-8` from `/etc/locale.gen` before running `locale-gen`)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
4 changes: 2 additions & 2 deletions src/engines/ruby/3.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (Uncomment `en_US.UTF-8` from `/etc/locale.gen` before running `locale-gen`)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
4 changes: 2 additions & 2 deletions src/engines/ruby/3.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (Uncomment `en_US.UTF-8` from `/etc/locale.gen` before running `locale-gen`)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down
4 changes: 2 additions & 2 deletions src/engines/ruby/3.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN true "${REPRO_RUN_KEY}" && apt-get update
# Install system dependencies for building
RUN apt-get install -y libc6-dev build-essential git locales tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*

# Ensure sane locale
RUN locale-gen en_US.UTF-8
# Ensure sane locale (Uncomment `en_US.UTF-8` from `/etc/locale.gen` before running `locale-gen`)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en

Expand Down

0 comments on commit 2c69dfc

Please sign in to comment.