Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow different locales #317

Open
ibotty opened this issue Nov 10, 2020 · 2 comments
Open

Allow different locales #317

ibotty opened this issue Nov 10, 2020 · 2 comments

Comments

@ibotty
Copy link
Contributor

ibotty commented Nov 10, 2020

ATM I have to modify the builder image to allow other locales:

FROM centos/php-73-centos7                                                                                                                                               
                                                                                                                                                                         
USER 0                                                                                                                                                                   
RUN sed -i '/override_install_langs/s/=.*/=en_US.utf8,en_GB.utf8,de_DE.utf8,fr_FR.utf8,es_ES.utf8,es_MX.utf8/' /etc/yum.conf \                                           
 && yum upgrade -y glibc-common \                                                                                                                                        
 && yum reinstall -y glibc-common \                                                                                                                                      
 && yum clean all                                                                                                                                                        
                                                                                                                                                                         
USER 1001                                                                                                                                                                

It would be great to allow specifying locales to build in the repository that gets built, say in .s2i/.

@ibotty
Copy link
Contributor Author

ibotty commented Nov 10, 2020

Maybe LOCPATH can be used, but it's not very nice to use.

@ibotty
Copy link
Contributor Author

ibotty commented Jun 9, 2022

Just a note, for the ubi9-image, you can use

FROM registry.access.redhat.com/ubi9/php-80:latest

USER 0
RUN for locale in de_DE fr_FR es_ES es_MX; do \
  localedef -i "$locale" -f UTF-8 "$locale".utf8; done

USER 1001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant