Closed BigTwoProduction closed 1 month ago
Hello,
I found the problem, after the commit 4346c2fdd307b6d38c6c2b533a4358c9024d7466 it is necessary to have the following file /etc/ssl/certs/ca-certificates.crt in the produced image.
So you need to install ca-certificates. You need to add a package to this file /docker/from-source/Ubuntu file, and modify the line
RUN apt-get update && \ apt-get -y install libpng16-16 fontconfig adduser cpio tzdata \ findutils nano \ libcap2-bin openssl openssh-client inotify-tools procps \ libxcb-shm0 libxcb-render0 libxrender1 libxext6 \ fonts-wqy-zenhei fonts-wqy-microhei fonts-droid-fallback \ fonts-noto-cjk libnss3
libnss3 was added by myself.
By
RUN apt-get update && \ apt-get -y install libpng16-16 fontconfig adduser cpio tzdata \ findutils nano \ libcap2-bin openssl openssh-client inotify-tools procps \ libxcb-shm0 libxcb-render0 libxrender1 libxext6 \ fonts-wqy-zenhei fonts-wqy-microhei fonts-droid-fallback \ fonts-noto-cjk libnss3 ca-certificates
Once added, the image produced is functional. Am I right, or have I fixed the problem in a sneaky way?
Still available if needed. Best Regards, Jordan.
https://github.com/CollaboraOnline/online/blob/master/docker/from-packages/Dockerfile lists ca-certificates. Seems this can be closed, as there is not issue.
ca-certificates is present in your file ok but i not make docker images from packages !
I'm surprised that this exit is closed, although I'd put effort into it and even found a solution to the problem, which proves that there is one. Did you read all the elements of my issue correctly?
When you make docker images from source, it seems logical to rely on the file as Ubuntu in the folder “from-source”. https://github.com/CollaboraOnline/online/blob/master/docker/from-source/Ubuntu not “from-package” https://github.com/CollaboraOnline/online/blob/master/docker/from-packages/Dockerfile
I assure you that if you take the sources and compile them, As it's possible to do here, https://github.com/CollaboraOnline/online/blob/master/docker/from-source/build.sh you won't get a non-functional docker image. in https://github.com/CollaboraOnline/online/blob/master/docker/from-source/Ubuntu There is no ca-certificates.
Two different things, but I'm not going to go any further than that.
Hello,
I compile a docker container quite often in order to appreciate the evolutions and improvements thanks to your wonderful work. Many thanks for that.
The compilation I'm doing concerns the following branches:
Online: distro/collabora/co-24.04 https://github.com/CollaboraOnline/online/tree/distro/collabora/co-24.04 Core: distro/collabora/co-24.04 https://git.libreoffice.org/core/+/refs/heads/distro/collabora/co-24.04
However, since commit 4346c2fdd307b6d38c6c2b533a4358c9024d7466
The docker container is no longer functional. I think the error concerns the verification of the self-signed certificate. Even if you specify “--o:ssl.ssl_verification=false”
When I launch my container, here are the parameters.
sudo docker run -t -d -p 9980:9980 -e “domain=xxxx.aaaa.fr” -e “extra_params=--o:user_interface.mode=notebookbar --o:net.proto=IPv4 --o:ssl.ssl_verification=false” -e “username=admin” -e “password=xxxxxxx” -v /etc/localtime:/etc/localtime -v /etc/timezone:/etc/timezone --restart always --name code_test --cap-add MKNOD --privileged id_image
The error is as follows
`Failed to initialize COOLWSD: Cannot load default CA bundle wsd-00001-00001 2024-07-19 17:11:42.078905 +0200 [ coolwsd ] INF hardware threads: 8| wsd/Admin.cpp:583 wsd-00001-00001 2024-07-19 17:11:42.078955 +0200 [ coolwsd ] TRC Initialize StorageBase| wsd/COOLWSD.cpp:2946 wsd-00001-00001 2024-07-19 17:11:42.084439 +0200 [ coolwsd ] FTL Failed to initialize COOLWSD: Cannot load default CA bundle| wsd/COOLWSD.hpp:530 Cannot load default CA bundle wsd-00001-00001 2024-07-19 17:11:42.084701 +0200 [ coolwsd ] INF ~Admin dtor.| wsd/Admin.cpp:588 wsd-00001-00001 2024-07-19 17:11:42.084715 +0200 [ coolwsd ] TRC History: { "documents" : [], "expiredDocuments" : []} | wsd/AdminModel.cpp:206 wsd-00001-00001 2024-07-19 17:11:42.084725 +0200 [ coolwsd ] INF AdminModel dtor.| wsd/AdminModel.cpp:207 wsd-00001-00001 2024-07-19 17:11:42.084734 +0200 [ coolwsd ] TRC ~SocketPoll [admin] destroying. Joining thread now.| net/Socket.cpp:250