Skip to content

Commit

Permalink
Reduce size by cleaning after broken locale-rebuilt on centos:6
Browse files Browse the repository at this point in the history
  • Loading branch information
mbargull committed Jul 3, 2019
1 parent b61d114 commit d97ea20
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions linux-anvil-comp7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ RUN yum update -y && \
sudo \
tar \
which && \
: '(centos:6 only) If glibc-common is updated, we have to manually purge non-en_US locales.' && \
if locale -a | grep nds_DE ; then \
mv /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.tmpl && \
localedef -i en_US -f UTF-8 en_US.UTF-8 && \
: > /usr/lib/locale/locale-archive.tmpl ; \
fi && \
yum clean all

# Run common commands
Expand Down
6 changes: 6 additions & 0 deletions linux-anvil-cuda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ RUN yum update -y && \
sudo \
tar \
which && \
: '(centos:6 only) If glibc-common is updated, we have to manually purge non-en_US locales.' && \
if locale -a | grep nds_DE ; then \
mv /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.tmpl && \
localedef -i en_US -f UTF-8 en_US.UTF-8 && \
: > /usr/lib/locale/locale-archive.tmpl ; \
fi && \
yum clean all

# Run common commands
Expand Down

0 comments on commit d97ea20

Please sign in to comment.