Bonjour à tous

Je m escrime desesperement a mettre en français mon conteneur mais je n'y arrive pas.

Voicl le dockerfile
FROM fedora:latest

LABEL maintainer="Eric Doutreleau <eric@doutreleau.fr>"

ADD finddupes.py finddupes.py
# Install dependencies
RUN dnf -y update
RUN dnf -y install gramps dbus-tools python3-beautifulsoup4 python3-requests langpacks-fr glibc-langpack-fr*  python3-pip
RUN pip install fuzzywuzzy
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /var/lib/dbus/ ; dbus-uuidgen > /var/lib/dbus/machine-id
RUN cp -f finddupes.py /usr/lib/python3.7/site-packages/gramps/plugins/tool/finddupes.py
RUN echo "LANG=fr_FR.UTF-8" > /etc/locale.conf
ENV USERNAME grocanar
RUN useradd -m grocanar && \
        echo "grocanar:grocanar" | chpasswd && \
        usermod --shell /bin/bash grocanar && \
        echo "grocanar ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/grocanar && \
        chmod 0440 /etc/sudoers.d/grocanar && \
        # Replace 1000 with your user/group id
        usermod  --uid 1000 grocanar && \
        groupmod --gid 1000 grocanar

ENV LANG fr_FR.UTF-8
mais quand le le lance avec docker ou podman j'ai toujours le message
Gtk-WARNING **: 15:37:52.451: Locale not supported by C library.
Using the fallback 'C' locale.
Si quelqu'un avait une idee je suis preneur.


merci d'avance
je suis arriver a ne plus avoir le message en positionnant la variable LC_ALL

j'ai bien la localisation en ligne de commande mais pas pour les application graphique tels que gedit
Bon j'ai l impression que c'est pas vraiment possible facilement d'avoir une image localise de la fedora.
Bon j y suis finalement arrive.

Voici le dockerfile final
FROM fedora:latest

LABEL maintainer="Eric Doutreleau <eric@doutreleau.fr>"

# Install dependencies
RUN rm -f /etc/rpm/macros.image-language-conf
RUN dnf -y update 

RUN dnf -y install glibc-langpack-en
RUN dnf -y remove glibc-minimal-langpack 
RUN dnf -y install langpacks-core-fr glibc-langpack-fr* langpacks-fr glibc-langp
ack-en
RUN dnf -y install gramps dbus-tools python3-beautifulsoup4 python3-requests pyt
hon3-pip python3-pyicu
RUN pip install fuzzywuzzy
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /var/lib/dbus/ ; dbus-uuidgen > /var/lib/dbus/machine-id
ADD finddupes.py finddupes.py
RUN cp -f finddupes.py /usr/lib/python3.7/site-packages/gramps/plugins/tool/find
dupes.py
RUN echo "LANG=fr_FR.UTF-8" > /etc/locale.conf
ENV USERNAME grocanar
RUN useradd -m grocanar && \
        echo "grocanar:grocanar" | chpasswd && \
        echo "grocanar ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/grocanar && \
        chmod 0440 /etc/sudoers.d/grocanar 

Du coup ton problème venait d'où ?
Alors le probleme bient du fait que les locales ne sont pas installées dans l'image de base.

il faut donc supprimer le fichier qui emepche l instalaltion des locales puis reinstaller les paquets
pour que ceux ci installent la locale.

c'est pas super propre mais bon
C'est quand même étrange comme concept.

C'est le paquet glibc-minimal-langpack qui cause ça du coup ?
oui
et le fichier macros
en fait l image est bloquée pour la rendre la plus petite possible