mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-09 12:59:43 +00:00
feat: supports docker compose deployment
This commit is contained in:
17
docker/allinone/allinone-entrypoint.sh
Executable file
17
docker/allinone/allinone-entrypoint.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
service mysql start
|
||||
|
||||
# execute all mysql init script
|
||||
for file in /docker-entrypoint-initdb.d/*.sql
|
||||
do
|
||||
echo "execute sql file: $file"
|
||||
mysql -u root -p${MYSQL_ROOT_PASSWORD} < "$file"
|
||||
done
|
||||
|
||||
mysql -u root -p${MYSQL_ROOT_PASSWORD} -e "
|
||||
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '$MYSQL_ROOT_PASSWORD';
|
||||
FLUSH PRIVILEGES;
|
||||
"
|
||||
|
||||
python3 pilot/server/dbgpt_server.py
|
Reference in New Issue
Block a user