mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
db and image pull
This commit is contained in:
parent
2ca635603b
commit
2a4a2b9d17
9 changed files with 180 additions and 38 deletions
|
|
@ -15,11 +15,12 @@ RUN DEBIAN_FRONTEND=noninteractive ;\
|
|||
attr \
|
||||
git \
|
||||
neovim \
|
||||
nano
|
||||
nano \
|
||||
sqlite
|
||||
|
||||
RUN wget https://phar.phpunit.de/phpunit-8.phar -O /usr/local/bin/phpunit.phar
|
||||
|
||||
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/swift.php configs/swiftv3.php configs/azure.php configs/config.php /root/
|
||||
ADD configs/autoconfig_mariadb.php configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/swift.php configs/swiftv3.php configs/azure.php configs/config.php /root/
|
||||
ADD configs/nginx-app.conf /etc/nginx/
|
||||
|
||||
RUN mkdir --parent /var/log/cron
|
||||
|
|
|
|||
9
images/haze/configs/autoconfig_mariadb.php
Normal file
9
images/haze/configs/autoconfig_mariadb.php
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
$AUTOCONFIG = [
|
||||
'dbname' => 'haze',
|
||||
'dbhost' => 'mariadb',
|
||||
'dbuser' => 'haze',
|
||||
'dbpass' => 'haze',
|
||||
'dbtype' => 'mysql'
|
||||
];
|
||||
9
images/haze/configs/ldap/autoconfig_mariadb.php
Normal file
9
images/haze/configs/ldap/autoconfig_mariadb.php
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
$AUTOCONFIG = [
|
||||
'dbname' => 'haze',
|
||||
'dbhost' => 'mysql',
|
||||
'dbuser' => 'haze',
|
||||
'dbpass' => 'haze',
|
||||
'dbtype' => 'mysql'
|
||||
];
|
||||
|
|
@ -11,6 +11,11 @@ then
|
|||
cp /root/autoconfig_mysql.php /var/www/html/config/autoconfig.php
|
||||
fi
|
||||
|
||||
if [ "$SQL" = "mariadb" ]
|
||||
then
|
||||
cp /root/autoconfig_mariadb.php /var/www/html/config/autoconfig.php
|
||||
fi
|
||||
|
||||
if [ "$SQL" = "pgsql" ]
|
||||
then
|
||||
cp /root/autoconfig_pgsql.php /var/www/html/config/autoconfig.php
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue