Repository navigation
[Misc] Download LibreOffice from the Document Foundation archive - #118
manuelleduc wants to merge 1 commit into
Conversation
769e678 to
dd0f2c7
Compare
* Download the LibreOffice archives from downloadarchive.documentfoundation.org instead of the main download site. The main site redirects to a random mirror, and a mirror with a broken TLS chain failed the build. The archive serves the files itself and keeps every version. * Make LIBREOFFICE_VERSION and versions.json hold the full 4-part build number (e.g. 26.2.7.3) used by the archive. The template derives the /opt/libreoffice symlink target from it. * Make updateLibreOffice resolve the highest build of the LTS version from the archive and read both sha256 from there. It fails when they differ from the sha256 of the release on the stable directory, which catches an archive that only has release candidates yet. * Regenerate the Dockerfiles. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dd0f2c7 to
fd47e14
Compare
|
Thanks for the investigation. I checked that the new URLs serve the files directly (200, no redirect), that the archive sha256 match the pinned values, and that the highest build in the archive is the release (e.g. 1. Align with the XWiki Docker test framework (main point) The test framework in xwiki-platform ( Note that the test framework used Whatever the solution, I think we should use the same mechanism in both places. Either:
If we keep different mechanisms, the comment that this PR removes ("the same source and version used by the XWiki Docker-based test framework") was a useful guarantee that we'd lose. 2. The archive is a single server It's a single host (no mirrors), so if it's down or slow, every official image build fails. 3.
4. Tests Only the "already up to date" path of 5. It goes from 6. Minor
|
|
Note that docker-library/official-images#22915 ended up merged even though LO downloading initially failed. |
Jira URL
None, this is a
[Misc]change.Changes
Description
https://downloadarchive.documentfoundation.org/libreoffice/old/<build>/instead ofhttps://download.documentfoundation.org/libreoffice/stable/<version>/.libreoffice.versioninversions.json, and thereforeLIBREOFFICE_VERSIONin the image, now hold the full 4-part build number (26.2.7.3instead of26.2.7). The archive uses it in its paths and file names. The Dockerfile derives the/opt/libreoffice26.2symlink target from it, so the version stays a single value.updateLibreOfficeresolves the highest build of the LTS version from the archive and reads both sha256 from there. It fails when they differ from the sha256 published for the release on thestabledirectory.Clarifications
xwiki:17andxwiki:18failed withcurl: (60) SSL certificate OpenSSL verify result: unable to get local issuer certificateon every retry. The other 13 jobs passed with the same base images.stable/drops a version once it leaves the stable branch. Older image tags stay rebuildable this way.updateLibreOfficecatches an archive that does not have the release build yet.LIBREOFFICE_VERSIONenvironment variable exposed by the image changes from26.2.7to26.2.7.3. A script comparing the exact string would notice.Screenshots & Video
No UI change.
Executed Tests
./gradlew: regenerates the 12 Dockerfiles. Only the LibreOffice lines change../gradlew updateLibreOffice: printsLibreOffice is already up to date (26.2.7.3).and leavesversions.jsonuntouched, so the archive andstable/sha256 match for amd64 and arm64.docker build 18/postgres-tomcat: succeeds. In the image,/opt/libreofficepoints to/opt/libreoffice26.2andsoffice --versionreportsLibreOffice 26.2.7.3, andLIBREOFFICE_VERSIONis26.2.7.3. arm64 was not built locally.Expected merging strategy
🤖 Generated with Claude Code