Bareos 24 images based on Ubuntu 24.04#197
Closed
dark-vex wants to merge 37 commits intobarcus:masterfrom
Closed
Conversation
- Created client/24-alpine with Alpine 3.22 base - Created storage/24-alpine with Alpine 3.22 base - Created webui/24-alpine with Alpine 3.22 base - Created api/24-alpine with Alpine 3.22 base - All images include appropriate docker-entrypoint.sh scripts - CI system configured to build for amd64 and arm64 architectures Resolves #11 Co-authored-by: Daniele De Lorenzi <dark-vex@users.noreply.github.com>
Alpine 3.20 and 3.22 don't include Bareos packages in their default repositories. This fixes the build failure by adding the Alpine edge community repository as a package source. Changes: - Updated all 22-alpine Dockerfiles (Alpine 3.20) to use edge repo - Updated all 24-alpine Dockerfiles (Alpine 3.22) to use edge repo - Affects: client, director-pgsql, storage, and webui images Fixes the build error: ERROR: unable to select packages: bareos (no such package) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Daniele De Lorenzi <dark-vex@users.noreply.github.com>
Bareos packages are not available in Alpine Linux repositories after version 3.16. Alpine 3.20 and 3.22 (and even the edge repository) do not contain Bareos packages. This commit downgrades all 22-alpine and 24-alpine images to use Alpine 3.16 as the base image, matching the working 21-alpine configuration. This ensures Bareos packages can be installed from Alpine's community repository. Changes: - Use Alpine 3.16 instead of 3.20 for all 22-alpine images - Use Alpine 3.16 instead of 3.22 for all 24-alpine images - Remove --repository=edge flag as it's not needed with 3.16 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Daniele De Lorenzi <dark-vex@users.noreply.github.com>
Add Bareos 24 Alpine images
Docker Compose V2 uses hyphens instead of underscores in container names. The bconsole exec step was referencing the old V1 name (bareos_bareos-dir_1) instead of the current V2 name (bareos-bareos-dir-1). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix(ci): update container name for Docker Compose V2 naming convention
* fix(ci): upgrade mysql from 5.6 to 5.7 in alpine-mysql-v2 compose mysql:5.6 is EOL and fails to start on modern kernels (6.x). mysql:5.7 is compatible with Bareos 19 and works on Ubuntu 24.04 runners. fix(bareos): use versioned release tags for webui config downloads The webui-admin.conf file was removed from the bareos/bareos 'master' branch, causing all directors to crash on startup by saving 404 HTML as a Bareos config file. Fix per version: - v16/v17: remove download blocks entirely (files never existed upstream) - v18: use Release/18.2.12 - v19: use Release/19.2.13 - v20: use Release/20.0.9 - v21: use Release/21.1.11 - v22: use Release/22.1.8 - v24: use Release/24.0.10 * Added Claude.md Signed-off-by: Daniele De Lorenzi <2905124+dark-vex@users.noreply.github.com>
…19) * feat: add bareos-packages/ from-source .deb builder for Ubuntu 22-24 download.bareos.org publishes versioned repos only for Bareos 20 and 21; the current/ repo serves only the latest (25.x) release. This adds a Docker-based build pipeline that compiles .deb packages from the upstream bareos/bareos release branches (bareos-22, bareos-23, bareos-24) using the Debian packaging tree shipped in the source repo. - bareos-packages/Dockerfile.builder.{jammy,noble}: minimal Ubuntu build environments with devscripts/debhelper/cmake/equivs - bareos-packages/build.sh: clones the target bareos branch, installs build-deps via mk-build-deps, runs dpkg-buildpackage with nocheck/nodoc, and collects .deb output under /artifacts/<branch>/<codename>/ - bareos-packages/matrix.yml: documents the three supported build tuples - .github/workflows/build-bareos-packages.yml: CI job (90 min timeout, fail-fast disabled) that builds the matrix, uploads artifacts with 30-day retention, and publishes tarballs to a GitHub Release on pkg/* tags - CLAUDE.md: updated version-support table, corrected active version list, added upstream availability reference and notes on when to use the builder fix(build): synthesize debian/changelog before dpkg-buildpackage Bareos release branches (bareos-22, bareos-23, bareos-24) do not ship debian/changelog — it is generated at release time by OBS. The debian/rules file reads the version via dpkg-parsechangelog, so dpkg-buildpackage fails immediately without it. Synthesize a minimal changelog via dch --create using a version derived from the branch name (e.g. 22.0.0~localsrc). * fix(build): add pg_ctl stub, libtirpc-dev, libnsl-dev for v24 Three more missing deps uncovered via local Docker iteration: 1. systemtests/CMakeLists.txt:134 uses find_program(PG_CTL REQUIRED) even when BUILD_TESTING=OFF (systemtests dir is always added unless client-only). Stub /usr/local/bin/pg_ctl satisfies the REQUIRED check; tests never run because DEB_BUILD_OPTIONS=nocheck. 2. libtirpc-dev is not in the static debian/control (it gets added by the cmake generate-debian-control target which runs after mk-build-deps). Without it /usr/include/tirpc/ is absent and the NDMP source that does #include <rpc/rpc.h> fails to compile. 3. libnsl-dev added alongside for the related NIS/NSL symbols used by NDMP.
…kill (#18) * feat: add Bareos 22-ubuntu images, re-enable Ubuntu CI, add version skill - Add client/storage/director-pgsql/webui 22-ubuntu Dockerfiles and entrypoints, adapting the 24-ubuntu bases to xUbuntu_22.04 (jammy) and the bareos.org current/ apt repo - Remove the 'continue' guard in prepare-bareos-app/entrypoint.sh that disabled all Ubuntu image builds in CI - Add .claude/skills/add-bareos-version/ project skill that delegates Dockerfile generation to the ollama-orchestrator subagent, with an upstream source mapping table for future version additions * fix(skill): add blank lines around lists and code block for mdl Addresses markdownlint MD031/MD032 violations flagged by test-n-lint CI on .claude/skills/add-bareos-version/SKILL.md. * fix(ci): restore ubuntu build skip until source packages land All ubuntu CI paths are currently broken: v20/v21 upstream apt repos fail, v22/v24 use current/ and install Bareos 25 (version mismatch vs directory name). Re-enable ubuntu CI in PR #2 once source-built debs are available. * fix(ci-api): Fixed a silent failure when running tests on ci-api entrypoint.sh Signed-off-by: Daniele De Lorenzi <2905124+dark-vex@users.noreply.github.com> --------- Signed-off-by: Daniele De Lorenzi <2905124+dark-vex@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Raised by mistake