Build 13.0.3

This commit is contained in:
Eduardo Fraga
2023-08-23 07:33:42 -03:00
commit 95a1b068b1
70 changed files with 5420 additions and 0 deletions

View File

@@ -0,0 +1 @@
admin:YWG41BPzVAkN6

View File

@@ -0,0 +1,13 @@
[Main]
auth_type = "basic"
login = "admin"
password = "admin"
client_id = ""
client_secret = ""
redirect_uri = ""
scope = ""
protocol = "http"
address = "baculum-api"
port = "9096"
url_prefix = ""

View File

@@ -0,0 +1 @@
a:1:{s:11:"host_params";a:1:{i:0;a:12:{s:4:"host";s:9:"localhost";s:8:"protocol";s:4:"http";s:7:"address";s:9:"localhost";s:4:"port";s:4:"9096";s:10:"url_prefix";s:0:"";s:9:"auth_type";s:5:"basic";s:5:"login";s:5:"admin";s:8:"password";s:5:"admin";s:9:"client_id";N;s:13:"client_secret";N;s:12:"redirect_uri";N;s:5:"scope";N;}}}

View File

@@ -0,0 +1,7 @@
[baculum]
login = "admin"
debug = "0"
lang = "en"
[users]

View File

@@ -0,0 +1,42 @@
FROM eftechcombr/bacula:13.0.3-base
RUN curl https://www.bacula.org/downloads/baculum/baculum.pub | apt-key add -
COPY baculum.list /etc/apt/sources.list.d/baculum.list
RUN apt update && \
apt -y install \
php-bcmath \
php*-mbstring \
php-fpm \
libapache2-mod-php7.4 \
baculum-api \
baculum-api-apache2 \
baculum-common \
bacula-console \
baculum-web \
baculum-web-apache2 \
supervisor
COPY sudoers-baculum /etc/sudoers.d/sudoers-baculum
RUN usermod -aG bacula www-data && \
chown -R www-data:bacula /opt/bacula/working /opt/bacula/etc && \
chmod -R g+rwx /opt/bacula/working /opt/bacula/etc && \
a2enmod rewrite && \
a2enmod php7.4 && \
a2ensite baculum-web
COPY timezone.ini /etc/php.d/timezone.ini
COPY confs/supervisord.conf /etc/supervisord.conf
VOLUME ["/opt/bacula/etc","/etc/baculum"]
EXPOSE 9095/tcp
RUN mkdir -p /run/php
# RUN yum -y clean all && rm -rf /var/cache/yum
CMD ["/usr/bin/supervisord"]

View File

@@ -0,0 +1,2 @@
deb [ arch=amd64 ] https://www.bacula.org/downloads/baculum/stable-11/debian bullseye main
deb-src https://www.bacula.org/downloads/baculum/stable-11/debian bullseye main

View File

@@ -0,0 +1,31 @@
[unix_http_server]
file=/var/run/supervisor.sock ; the path to the socket file
[supervisord]
logfile=/var/log/supervisord.log
loglevel=info
pidfile=/var/run/supervisord.pid
nodaemon=true
logfile_backups=10
logfile_maxbytes=50MB
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock
[program:php-fpm7.4]
command=/usr/sbin/php-fpm7.4 --nodaemonize -c /etc/php/7.4/fpm/php-fpm.conf
priority=50
autorestart=true
[program:apache2]
command=/usr/sbin/apache2ctl -D FOREGROUND
priority=50
autorestart=true

View File

@@ -0,0 +1,16 @@
Defaults:apache "'!'"requiretty
www-data ALL=NOPASSWD: /usr/sbin/bconsole
www-data ALL=NOPASSWD: /usr/sbin/bdirjson
www-data ALL=NOPASSWD: /usr/sbin/bsdjson
www-data ALL=NOPASSWD: /usr/sbin/bfdjson
www-data ALL=NOPASSWD: /usr/sbin/bbconsjson
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl start bacula-dir
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl stop bacula-dir
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl restart bacula-dir
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl start bacula-sd
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl stop bacula-sd
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl restart bacula-sd
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl start bacula-fd
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl stop bacula-fd
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl restart bacula-fd
www-data ALL=(root) NOPASSWD: /opt/bacula/bin/mtx-changer

View File

@@ -0,0 +1,2 @@
[Date]
date.timezone = Etc/UTC ;