diff --git a/Dockerfile b/Dockerfile index 8459734..a9fa9e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,6 @@ RUN pip install --no-cache-dir -r files/requirements.txt COPY . . -RUN rm files/db.sqlite RUN /usr/local/bin/alembic -c alembic/alembic.ini upgrade head # Command to run the FastAPI application diff --git a/scripts/manager.sh b/scripts/manager.sh index 35d7661..8985b35 100755 --- a/scripts/manager.sh +++ b/scripts/manager.sh @@ -4,12 +4,21 @@ APP_DIR="$HOME/.db-middleware" CODE_DIR="$HOME/.db-middleware/code" install() { - echo "Installing the Middleware." + echo + echo "+------------------------------+" + echo "| Installing the Middleware... |" + echo "+------------------------------+" + echo + cd "$CODE_DIR" - + docker build -t db-middleware . - - echo "Installed the Middleware Successfully." + + echo + echo "+----------------------------------------+" + echo "| Installed the Middleware Successfully. |" + echo "+----------------------------------------+" + echo } # Function for the "upgrade" command diff --git a/scripts/setup.sh b/scripts/setup.sh index 4c8e6ef..96ebd08 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -49,4 +49,8 @@ cp "$CODE_DIR/scripts/"* "$APP_DIR/scripts/" chmod +x "$APP_DIR/scripts/"* # Run the manager.sh script with the "install" argument +echo +echo "--------------------" +echo + "$APP_DIR/scripts/manager.sh" install \ No newline at end of file