mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(docker): modify db configuration for new tests
A user that can create databases is now required for tests, we use the 'root' user in Docker. Added docker services: --------------------- - mariadb_test - host localhost:13307 Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
fa43f6bc3e
commit
fa26c8078b
12 changed files with 53 additions and 79 deletions
|
@ -1,17 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -eou pipefail
|
||||
|
||||
DB_NAME="aurweb_test"
|
||||
|
||||
# Setup a config for our mysql db.
|
||||
cp -vf conf/config.dev conf/config
|
||||
sed -i "s;YOUR_AUR_ROOT;$(pwd);g" conf/config
|
||||
sed -ri "s/^(name) = .+/\1 = ${DB_NAME}/" conf/config
|
||||
|
||||
# The port can be excluded from use if properly using
|
||||
# volumes to share the mysql socket from the mariadb service.
|
||||
# Example port sed:
|
||||
# sed -i "s/^;?(port = .+)$/\1/" conf/config
|
||||
|
||||
# Continue onto the main command.
|
||||
exec "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue