docker files fixes from liaqat

This commit is contained in:
alirehmani
2024-05-03 16:39:25 +05:00
commit 464a8730e8
587 changed files with 44288 additions and 0 deletions

13
scripts/build_and_run.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Navigate to the src directory
cd ../src
# Build the managing.api image
docker build -t managing.api -f Managing.Api/Dockerfile . --no-cache
# Build the managing.api.workers image
docker build -t managing.api.workers -f Managing.Api.Workers/Dockerfile . --no-cache
# Start up the project using docker-compose
docker-compose -f Managing.Docker/docker-compose.yml -f Managing.Docker/docker-compose.sandbox.yml up -d

View File

@@ -0,0 +1,4 @@
cd ..
cd .\src\Managing.WebApp\
npm run lint:fix
npm run prettier

View File

@@ -0,0 +1,5 @@
cd ..
cd .\src\
docker build -t managing.api -f ./Managing.Api/Dockerfile . --no-cache
docker build -t managing.api.workers -f ./Managing.Api.Workers/Dockerfile . --no-cache
docker-compose -f ./Managing.Docker/docker-compose.yml -f ./Managing.Docker/docker-compose.sandbox.yml up -d

View File

@@ -0,0 +1,5 @@
cd ..
cd .\src\
docker build -t managing.api -f ./Managing.Api/Dockerfile . --no-cache
docker build -t managing.api.workers -f ./Managing.Api.Workers/Dockerfile . --no-cache
docker-compose -f ./Managing.Docker/docker-compose.yml -f ./Managing.Docker/docker-compose.sandbox.yml up -d

View File

@@ -0,0 +1,22 @@
cd ..
cd .\src\
ECHO "Stopping containers..."
docker stop sandbox-managing.api-1
docker stop sandbox-managing.api.workers-1
ECHO "Contaiters stopped"
ECHO "Removing containers..."
docker rm sandbox-managing.api-1
docker rm sandbox-managing.api.workers-1
ECHO "Containers removed"
ECHO "Removing images..."
docker rmi managing.api
docker rmi managing.api:latest
docker rmi managing.api.workers
docker rmi managing.api.workers:latest
ECHO "Images removed"
ECHO "Building images..."
docker build -t managing.api -f ./Managing.Api/Dockerfile . --no-cache
docker build -t managing.api.workers -f ./Managing.Api.Workers/Dockerfile . --no-cache
ECHO "Deploying..."
docker-compose -f ./Managing.Docker/docker-compose.yml -f ./Managing.Docker/docker-compose.sandbox.yml up -d
ECHO "Deployed"