mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 09:04:12 +02:00
initial nix based docker images
This commit is contained in:
parent
4972a889eb
commit
06bf3b4b62
72 changed files with 472 additions and 789 deletions
20
nix/image/scripts/install
Executable file
20
nix/image/scripts/install
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
USER=$1
|
||||
PASSWORD=$2
|
||||
|
||||
if [ -z "$USER" ] || [ -z "$PASSWORD" ]; then
|
||||
echo "Usage: install \$USER \$PASSWORD"
|
||||
exit;
|
||||
fi
|
||||
|
||||
cd $WEBROOT
|
||||
|
||||
if [ "$SQL" = "oci" ]; then
|
||||
# oracle is a special snowflake
|
||||
occ maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database=$SQL --database-name=xe --database-host=$SQL --database-user=system --database-pass=haze
|
||||
elif [ "$SQL" = "mariadb" ]; then
|
||||
occ maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database=mysql --database-name=haze --database-host=$SQL --database-user=haze --database-pass=haze
|
||||
else
|
||||
occ maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database=$SQL --database-name=haze --database-host=$SQL --database-user=haze --database-pass=haze
|
||||
fi;
|
||||
4
nix/image/scripts/integration
Executable file
4
nix/image/scripts/integration
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd $WEBROOT/build/integration
|
||||
./run.sh "$@"
|
||||
5
nix/image/scripts/occ
Executable file
5
nix/image/scripts/occ
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
export XDEBUG_SESSION=haze
|
||||
|
||||
php $WEBROOT/occ "$@"
|
||||
3
nix/image/scripts/phpunit
Executable file
3
nix/image/scripts/phpunit
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
/usr/local/bin/php -d memory_limit=512M /usr/local/bin/phpunit.phar $@
|
||||
7
nix/image/scripts/tests
Executable file
7
nix/image/scripts/tests
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd $WEBROOT
|
||||
|
||||
export XDEBUG_SESSION=haze
|
||||
|
||||
phpunit --configuration $WEBROOT/tests/phpunit-autotest.xml $@
|
||||
Loading…
Add table
Add a link
Reference in a new issue