Skip to content

Commit 9f264bc

Browse files
committed
Update Dockerfile
1 parent bb3b9f6 commit 9f264bc

File tree

1 file changed

+31
-8
lines changed

1 file changed

+31
-8
lines changed

director/Dockerfile

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Bareos director Dockerfile
2-
FROM arm32v7/alpine:3.19
2+
FROM ubuntu:focal
33

4-
LABEL maintainer="aide@libertech.fr"
4+
LABEL maintainer="barcus@tou.nu"
55

66
ARG BUILD_DATE
77
ARG NAME
@@ -15,13 +15,36 @@ LABEL org.label-schema.schema-version="1.0" \
1515
org.label-schema.vcs-url="https://github.com/barcus/bareos" \
1616
org.label-schema.version=$VERSION
1717

18-
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
19-
20-
RUN apk add --no-cache bareos bareos-postgresql postgresql-client curl tzdata tar
18+
ENV DEBIAN_FRONTEND noninteractive
19+
ENV BAREOS_KEY http://download.bareos.org/bareos/release/21/xUbuntu_20.04/Release.key
20+
ENV BAREOS_REPO http://download.bareos.org/bareos/release/21/xUbuntu_20.04/
21+
ENV BAREOS_DPKG_CONF bareos-database-common bareos-database-common
22+
23+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
24+
25+
RUN apt-get update -qq \
26+
&& apt-get -qq -y install --no-install-recommends curl tzdata gnupg awscli openssh-client\
27+
&& curl -Ls $BAREOS_KEY -o /tmp/bareos.key \
28+
&& apt-key --keyring /etc/apt/trusted.gpg.d/breos-keyring.gpg \
29+
add /tmp/bareos.key \
30+
&& echo "deb $BAREOS_REPO /" > /etc/apt/sources.list.d/bareos.list \
31+
&& echo "${BAREOS_DPKG_CONF}/dbconfig-install boolean false" \
32+
| debconf-set-selections \
33+
&& echo "${BAREOS_DPKG_CONF}/install-error select ignore" \
34+
| debconf-set-selections \
35+
&& echo "${BAREOS_DPKG_CONF}/database-type select pgsql" \
36+
| debconf-set-selections \
37+
&& echo "${BAREOS_DPKG_CONF}/missing-db-package-error select ignore" \
38+
| debconf-set-selections \
39+
&& echo 'postfix postfix/main_mailer_type select No configuration' \
40+
| debconf-set-selections \
41+
&& apt-get update -qq \
42+
&& apt-get install -qq -y --no-install-recommends \
43+
bareos postgresql-client bareos-tools \
44+
&& apt-get clean \
45+
&& rm -rf /var/lib/apt/lists/*
2146

2247
RUN tar czf /bareos-dir.tgz /etc/bareos
23-
RUN mkdir /run/bareos \
24-
&& chown bareos /run/bareos
2548

2649
COPY webhook-notify /usr/local/bin/webhook-notify
2750
RUN chmod u+x /usr/local/bin/webhook-notify
@@ -32,7 +55,7 @@ RUN chmod u+x /docker-entrypoint.sh
3255
EXPOSE 9101
3356

3457
VOLUME /etc/bareos
35-
VOLUME /var/lib/bareos
3658

3759
ENTRYPOINT ["/docker-entrypoint.sh"]
3860
CMD ["/usr/sbin/bareos-dir", "-u", "bareos", "-f"]
61+

0 commit comments

Comments
 (0)