Skip to content

Commit

Permalink
Make sure the locales are installed correctly
Browse files Browse the repository at this point in the history
Applies the same change we have in the POWER and ARM containers to our
other containers.
  • Loading branch information
jakirkham committed Jun 26, 2019
1 parent f00abdd commit dacf042
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions linux-anvil-comp7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ ADD http://worldclockapi.com/api/json/utc/now /opt/docker/etc/timestamp
# Resolves a nasty NOKEY warning that appears when using yum.
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

# Fix up issues with locales because the default images have these minimized
# to the point of not being properly functional
# See: https://github.com/CentOS/sig-cloud-instance-images/issues/71
RUN yum update -y && \
yum reinstall -y glibc-common && \
yum clean all
RUN localedef -i en_US -f UTF-8 en_US.UTF-8

# Install basic requirements.
RUN yum update -y && \
yum install -y \
Expand Down
8 changes: 8 additions & 0 deletions linux-anvil-cuda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ ADD http://worldclockapi.com/api/json/utc/now /opt/docker/etc/timestamp
# Resolves a nasty NOKEY warning that appears when using yum.
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

# Fix up issues with locales because the default images have these minimized
# to the point of not being properly functional
# See: https://github.com/CentOS/sig-cloud-instance-images/issues/71
RUN yum update -y && \
yum reinstall -y glibc-common && \
yum clean all
RUN localedef -i en_US -f UTF-8 en_US.UTF-8

# Remove preinclude system compilers
RUN rpm -e --nodeps --verbose gcc gcc-c++

Expand Down

0 comments on commit dacf042

Please sign in to comment.