Skip to content

Commit b154052

Browse files
Fix Alpine build failure by using Alpine 3.16
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>
1 parent 75eec3a commit b154052

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

client/22-alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Dockerfile Bareos client/file daemon
2-
FROM alpine:3.20
2+
FROM alpine:3.16
33

44
LABEL maintainer="barcus@tou.nu"
55

@@ -20,7 +20,7 @@ LABEL org.label-schema.schema-version="1.0" \
2020

2121
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
2222

23-
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community bareos-filedaemon openssh-client tar shadow bash su-exec
23+
RUN apk add --no-cache bareos-filedaemon openssh-client tar shadow bash su-exec
2424

2525
RUN tar czf /bareos-fd.tgz /etc/bareos/bareos-fd.d
2626
RUN mkdir /run/bareos \

client/24-alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Dockerfile Bareos client/file daemon
2-
FROM alpine:3.22
2+
FROM alpine:3.16
33

44
LABEL maintainer="barcus@tou.nu"
55

@@ -20,7 +20,7 @@ LABEL org.label-schema.schema-version="1.0" \
2020

2121
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
2222

23-
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community bareos-filedaemon openssh-client tar shadow bash su-exec
23+
RUN apk add --no-cache bareos-filedaemon openssh-client tar shadow bash su-exec
2424

2525
RUN tar czf /bareos-fd.tgz /etc/bareos/bareos-fd.d
2626
RUN mkdir /run/bareos \

director-pgsql/22-alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Bareos director Dockerfile
2-
FROM alpine:3.20
2+
FROM alpine:3.16
33

44
LABEL maintainer="barcus@tou.nu"
55

@@ -17,7 +17,7 @@ LABEL org.label-schema.schema-version="1.0" \
1717

1818
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
1919

20-
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community bareos bareos-postgresql postgresql-client curl tzdata tar
20+
RUN apk add --no-cache bareos bareos-postgresql postgresql-client curl tzdata tar
2121

2222
RUN tar czf /bareos-dir.tgz /etc/bareos
2323
RUN mkdir /run/bareos \

director-pgsql/24-alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Bareos director Dockerfile
2-
FROM alpine:3.22
2+
FROM alpine:3.16
33

44
LABEL maintainer="barcus@tou.nu"
55

@@ -17,7 +17,7 @@ LABEL org.label-schema.schema-version="1.0" \
1717

1818
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
1919

20-
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community bareos bareos-postgresql postgresql-client curl tzdata tar
20+
RUN apk add --no-cache bareos bareos-postgresql postgresql-client curl tzdata tar
2121

2222
RUN tar czf /bareos-dir.tgz /etc/bareos
2323
RUN mkdir /run/bareos \

storage/22-alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Dockerfile Bareos storage daemon
2-
FROM alpine:3.20
2+
FROM alpine:3.16
33

44
LABEL maintainer="barcus@tou.nu"
55

@@ -17,7 +17,7 @@ LABEL org.label-schema.schema-version="1.0" \
1717

1818
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
1919

20-
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community bareos bareos-storage tar
20+
RUN apk add --no-cache bareos bareos-storage tar
2121

2222
RUN tar czf /bareos-sd.tgz /etc/bareos/bareos-sd.d
2323
RUN mkdir /run/bareos \

storage/24-alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Dockerfile Bareos storage daemon
2-
FROM alpine:3.22
2+
FROM alpine:3.16
33

44
LABEL maintainer="barcus@tou.nu"
55

@@ -17,7 +17,7 @@ LABEL org.label-schema.schema-version="1.0" \
1717

1818
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
1919

20-
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community bareos bareos-storage tar
20+
RUN apk add --no-cache bareos bareos-storage tar
2121

2222
RUN tar czf /bareos-sd.tgz /etc/bareos/bareos-sd.d
2323
RUN mkdir /run/bareos \

webui/22-alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Bareos Web-ui Dockerfile
2-
FROM alpine:3.20
2+
FROM alpine:3.16
33

4-
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community bareos-webui-nginx
4+
RUN apk add --no-cache bareos-webui-nginx
55

66
COPY docker-entrypoint.sh /docker-entrypoint.sh
77
RUN chmod u+x /docker-entrypoint.sh

webui/24-alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Bareos Web-ui Dockerfile
2-
FROM alpine:3.22
2+
FROM alpine:3.16
33

4-
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community bareos-webui-nginx
4+
RUN apk add --no-cache bareos-webui-nginx
55

66
COPY docker-entrypoint.sh /docker-entrypoint.sh
77
RUN chmod u+x /docker-entrypoint.sh

0 commit comments

Comments
 (0)