Skip to content

Bareos 24 images based on Ubuntu 24.04#197

Open
dark-vex wants to merge 29 commits intobarcus:masterfrom
dark-vex:master
Open

Bareos 24 images based on Ubuntu 24.04#197
dark-vex wants to merge 29 commits intobarcus:masterfrom
dark-vex:master

Conversation

@dark-vex
Copy link
Contributor

@dark-vex dark-vex commented Oct 4, 2025

This PR add version 24 of Bareos, I had the time to only prepare the Ubuntu images for know

  • Director PGSQL
root@dcknuc:~/git-sources/bareos# docker build -t director-pqsql:24-ubuntu director-pgsql/24-ubuntu
[+] Building 0.3s (12/12) FINISHED                                                                                                                                                                                             
 => [internal] load build definition from Dockerfile                                                                                                                                                                                     0.0s
 => => transferring dockerfile: 2.04kB                                                                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:noble                                                                                                                                                                          0.2s
 => [internal] load .dockerignore                                                                                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                                                                          0.0s
 => [1/7] FROM docker.io/library/ubuntu:noble@sha256:728785b59223d755e3e5c5af178fab1be7031f3522c5ccd7a0b32b80d8248123                                                                                                                    0.0s
 => [internal] load build context                                                                                                                                                                                                        0.0s
 => => transferring context: 76B                                                                                                                                                                                                         0.0s
 => CACHED [2/7] RUN apt-get update -qq  && apt-get -qq -y install --no-install-recommends curl tzdata gnupg  && curl -Ls http://download.bareos.org/current/xUbuntu_24.04/Release.key | gpg --dearmor -o /usr/share/keyrings/bareos.gp  0.0s
 => CACHED [3/7] RUN tar czf /bareos-dir.tgz /etc/bareos                                                                                                                                                                                 0.0s
 => CACHED [4/7] COPY webhook-notify /usr/local/bin/webhook-notify                                                                                                                                                                       0.0s
 => CACHED [5/7] RUN chmod u+x /usr/local/bin/webhook-notify                                                                                                                                                                             0.0s
 => CACHED [6/7] COPY docker-entrypoint.sh /docker-entrypoint.sh                                                                                                                                                                         0.0s
 => CACHED [7/7] RUN chmod u+x /docker-entrypoint.sh                                                                                                                                                                                     0.0s
 => exporting to image                                                                                                                                                                                                                   0.0s
 => => exporting layers                                                                                                                                                                                                                  0.0s
 => => writing image sha256:148bf2f2ffecc1b39f1ab687d3abbf446c4bf6b22d519255f4a9f5cc1e2d5d6c                                                                                                                                             0.0s
 => => naming to docker.io/library/director-pqsql:24-ubuntu                                                                                                                                                                              0.0s

 1 warning found (use docker --debug to expand):
 - SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "BAREOS_KEY") (line 19)
[+] Building 27.5s (10/10) FINISHED
  • Storage
root@dcknuc:~/git-sources/bareos# docker build -t storage:24-ubuntu storage/24-ubuntu

 => [internal] load build definition from Dockerfile                                                                                                                                                                                     0.0s
 => => transferring dockerfile: 1.50kB                                                                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:noble                                                                                                                                                                          0.2s
 => [internal] load .dockerignore                                                                                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                                                                          0.0s
 => CACHED [1/5] FROM docker.io/library/ubuntu:noble@sha256:728785b59223d755e3e5c5af178fab1be7031f3522c5ccd7a0b32b80d8248123                                                                                                             0.0s
 => [internal] load build context                                                                                                                                                                                                        0.0s
 => => transferring context: 772B                                                                                                                                                                                                        0.0s
 => [2/5] RUN apt-get update -qq  && apt-get -qq -y install --no-install-recommends curl tzdata gnupg  && curl -Ls http://download.bareos.org/current/xUbuntu_24.04/Release.key | gpg --dearmor -o /usr/share/keyrings/bareos.gpg  &&   25.0s
 => [3/5] COPY docker-entrypoint.sh /docker-entrypoint.sh                                                                                                                                                                                0.0s 
 => [4/5] RUN chmod u+x /docker-entrypoint.sh                                                                                                                                                                                            0.4s 
 => [5/5] RUN tar czf /bareos-sd.tgz /etc/bareos/bareos-sd.d                                                                                                                                                                             0.5s 
 => exporting to image                                                                                                                                                                                                                   1.3s 
 => => exporting layers                                                                                                                                                                                                                  1.3s 
 => => writing image sha256:4c8b266f324a6dde68a15d96f3ab28ed44203ec6d34b035c1571b935e1be4f69                                                                                                                                             0.0s 
 => => naming to docker.io/library/storage:24-ubuntu                                                                                                                                                                                     0.0s

 1 warning found (use docker --debug to expand):
 - SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "BAREOS_KEY") (line 18)
[+] Building 32.7s (10/10) FINISHED            
  • Client
root@dcknuc:~/git-sources/bareos# docker build -t client:24-ubuntu client/24-ubuntu

 => [internal] load build definition from Dockerfile                                                                                                                                                                                     0.0s
 => => transferring dockerfile: 1.45kB                                                                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:noble                                                                                                                                                                          0.2s
 => [internal] load .dockerignore                                                                                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                                                                          0.0s
 => CACHED [1/5] FROM docker.io/library/ubuntu:noble@sha256:728785b59223d755e3e5c5af178fab1be7031f3522c5ccd7a0b32b80d8248123                                                                                                             0.0s
 => [2/5] RUN apt-get update -qq  && apt-get -qq -y install --no-install-recommends curl tzdata gnupg gosu  && curl -Ls http://download.bareos.org/current/xUbuntu_24.04/Release.key | gpg --dearmor -o /usr/share/keyrings/bareos.gpg  29.0s
 => [internal] load build context                                                                                                                                                                                                        0.0s
 => => transferring context: 1.06kB                                                                                                                                                                                                      0.0s
 => [3/5] COPY docker-entrypoint.sh /docker-entrypoint.sh                                                                                                                                                                                0.0s 
 => [4/5] RUN chmod a+x /docker-entrypoint.sh                                                                                                                                                                                            0.3s 
 => [5/5] RUN tar czf /bareos-fd.tgz /etc/bareos/bareos-fd.d                                                                                                                                                                             0.5s 
 => exporting to image                                                                                                                                                                                                                   2.5s 
 => => exporting layers                                                                                                                                                                                                                  2.5s 
 => => writing image sha256:34aee79a132ee755e0fb6605aec78e7c522a08ff2e9df36ede1131b3826d5cb1                                                                                                                                             0.0s 
 => => naming to docker.io/library/client:24-ubuntu                                                                                                                                                                                      0.0s

 1 warning found (use docker --debug to expand):
 - SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "BAREOS_KEY") (line 21)
[+] Building 52.8s (10/10) FINISHED                                                                                                                                                                                            
  • Web UI
root@dcknuc:~/git-sources/bareos# docker build -t webui:24-ubuntu webui/24-ubuntu
 => [internal] load build definition from Dockerfile                                                                                                                                                                                     0.0s
 => => transferring dockerfile: 1.36kB                                                                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:noble                                                                                                                                                                          0.7s
 => [internal] load .dockerignore                                                                                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                                                                          0.0s
 => CACHED [1/5] FROM docker.io/library/ubuntu:noble@sha256:728785b59223d755e3e5c5af178fab1be7031f3522c5ccd7a0b32b80d8248123                                                                                                             0.0s
 => [2/5] RUN apt-get update -qq  && apt-get -qq -y install --no-install-recommends curl tzdata gnupg  && curl -Ls http://download.bareos.org/current/xUbuntu_24.04/Release.key | gpg --dearmor -o /usr/share/keyrings/bareos.gpg  &&   47.4s
 => [internal] load build context                                                                                                                                                                                                        0.0s
 => => transferring context: 814B                                                                                                                                                                                                        0.0s
 => [3/5] COPY docker-entrypoint.sh /docker-entrypoint.sh                                                                                                                                                                                0.1s 
 => [4/5] RUN chmod u+x /docker-entrypoint.sh                                                                                                                                                                                            0.4s 
 => [5/5] RUN tar czf /bareos-webui.tgz /etc/bareos-webui                                                                                                                                                                                0.4s 
 => exporting to image                                                                                                                                                                                                                   3.7s 
 => => exporting layers                                                                                                                                                                                                                  3.7s 
 => => writing image sha256:f09d0aff68d93c59546b76c31cb1dfef5d693e58c3dbfb7b2623c100b79c7916                                                                                                                                             0.0s 
 => => naming to docker.io/library/webui:24-ubuntu                                                                                                                                                                                       0.0s

 1 warning found (use docker --debug to expand):
 - SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "BAREOS_KEY") (line 18)

dark-vex and others added 29 commits October 4, 2025 11:26
- 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant