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:
Patrick Lewis
2022-08-18 11:53:25 -07:00
committed by GitHub
parent d4b3de773d
commit 635c79f141
2 changed files with 2 additions and 13 deletions

View File

@@ -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

View File

@@ -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",