Generate Spanish translation of the GGI handbook
I was asked to generate the Spanish translated GGI manual.
- I cloned the repo with
git clone https://gitlab.ow2.org/ggi/ggi.git
. - Then I've entered the
handbook/scripts
directory withcd handbook/scripts
. - Then I've run the script with
sudo ./convert_translation_docker.sh -l es
.
It is the first time I run the script, so it took a while to generate the docker image. At the end there's this error:
...
Processing triggers for fontconfig (2.14.1-4) ...
OK
Clean APT cache.
Checking if the po2md command exists and installs the mdpo through pip if needed
creating virtual environment...
creating shared libraries...
upgrading shared libraries...
installing mdpo...
⚠️ Note: '/root/.local/bin' is not on your PATH environment variable. These
apps will not be globally accessible until your PATH is updated. Run `pipx
ensurepath` to automatically add it, or manually modify your PATH in your
shell's config file (i.e. ~/.bashrc).
done! ✨ 🌟 ✨
installed package mdpo 1.1.4, installed using Python 3.11.2
These apps are now globally available
- md2po
- md2po2md
- mdpo2html
- po2md
OK
Adapt ImageMagick's policy to allow converting to PDF
OK
Checking if pip command po2md exists in user's ~/.local/bin, but that path is not in the PATH variable
Error: .local/bin is not in the PATH variable
OK
Your action might be required:
To improve language specific tex support, you may want to install texlive-lang-[language] packages, e.g. by running sudo apt-get texlive-lang-[language] (where [language] is replaced by the full language name).
Done.
Removing intermediate container c9045929fe97
---> 95aa7b974bd9
Step 8/11 : RUN addgroup --gid $GROUP_ID user
---> Running in a6b7a3516138
addgroup: The GID `0' is already in use.
The command '/bin/bash -c addgroup --gid $GROUP_ID user' returned a non-zero code: 1
# Compiling po files and building the PDF.
Unable to find image 'ggi-translation:latest' locally
docker: Error response from daemon: pull access denied for ggi-translation, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
Re-running again, the image is available upfront, so the messages look simpler:
$ sudo ./convert_translation_docker.sh -l es
[sudo] contraseña para izubiaurre:
# Docker image ggi-translation doesn't exist, building it.
Sending build context to Docker daemon 115.7kB
Step 1/11 : FROM debian:bookworm
---> a6916e41aa87
Step 2/11 : ARG USER_ID
---> Using cache
---> afb5f2986d4d
Step 3/11 : ARG GROUP_ID
---> Using cache
---> 666ddf6bede6
Step 4/11 : SHELL ["/bin/bash", "-c"]
---> Using cache
---> 766d5d69f6de
Step 5/11 : RUN apt-get update && apt-get install -y sudo locales texlive-xetex texlive-lang-all locales-all && apt-get clean && rm -rf /var/lib/apt/lists/*
---> Using cache
---> 06ab4fa9b71d
Step 6/11 : COPY setupDebian.sh /root
---> Using cache
---> 26a515deca18
Step 7/11 : RUN /root/setupDebian.sh
---> Using cache
---> 95aa7b974bd9
Step 8/11 : RUN addgroup --gid $GROUP_ID user
---> Running in 0d49e598ddd5
addgroup: The GID `0' is already in use.
The command '/bin/bash -c addgroup --gid $GROUP_ID user' returned a non-zero code: 1
# Compiling po files and building the PDF.
Unable to find image 'ggi-translation:latest' locally
docker: Error response from daemon: pull access denied for ggi-translation, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
$
Following the warning in Debian's wiki, I use sudo
to execute Docker. Maybe the docker file doesn't expect this use case and tries to escalate privileges it already has (?).
It will take a while until I figure out the design and the problem by myself, so any help will be welcome.