mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(DOCKER): remove docker db import using bash (#12773)
* fix(DOCKER): remove docker db import using bash * remove db-import command
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
IMPORT_DB=$1
|
|
||||||
|
|
||||||
source "$CUR_PATH/docker-build-prod.sh"
|
source "$CUR_PATH/docker-build-prod.sh"
|
||||||
|
|
||||||
echo "Fixing EOL..."
|
echo "Fixing EOL..."
|
||||||
@@ -14,5 +12,3 @@ for file in "env/dist/etc/"*
|
|||||||
do
|
do
|
||||||
dos2unix -n $file $file
|
dos2unix -n $file $file
|
||||||
done
|
done
|
||||||
|
|
||||||
[[ $IMPORT_DB != 0 ]] && bash acore.sh db-assembler import-all || true
|
|
||||||
|
|||||||
@@ -51,11 +51,11 @@ shellCommandFactory(
|
|||||||
|
|
||||||
shellCommandFactory(
|
shellCommandFactory(
|
||||||
"build:compile",
|
"build:compile",
|
||||||
"Run the compilation process only, without rebuilding all docker images and importing db",
|
"Run the compilation process only, without rebuilding all docker images",
|
||||||
[
|
[
|
||||||
"docker-compose build --parallel ac-build",
|
"docker-compose build --parallel ac-build",
|
||||||
"docker image prune -f",
|
"docker image prune -f",
|
||||||
"docker-compose run --rm ac-build bash apps/docker/docker-build-dev.sh 0",
|
"docker-compose run --rm ac-build bash apps/docker/docker-build-dev.sh",
|
||||||
],
|
],
|
||||||
env,
|
env,
|
||||||
);
|
);
|
||||||
@@ -77,13 +77,6 @@ shellCommandFactory(
|
|||||||
env,
|
env,
|
||||||
);
|
);
|
||||||
|
|
||||||
shellCommandFactory(
|
|
||||||
"db-import",
|
|
||||||
"Create and upgrade the database with latest updates",
|
|
||||||
["docker-compose run --rm ac-build bash acore.sh db-assembler import-all"],
|
|
||||||
env,
|
|
||||||
);
|
|
||||||
|
|
||||||
shellCommandFactory(
|
shellCommandFactory(
|
||||||
"dev:up",
|
"dev:up",
|
||||||
"Start the dev server container in background",
|
"Start the dev server container in background",
|
||||||
|
|||||||
Reference in New Issue
Block a user