docker files fixes from liaqat
This commit is contained in:
13
scripts/build_and_run.sh
Normal file
13
scripts/build_and_run.sh
Normal 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
|
||||
4
scripts/clean-front-end-code.cmd
Normal file
4
scripts/clean-front-end-code.cmd
Normal file
@@ -0,0 +1,4 @@
|
||||
cd ..
|
||||
cd .\src\Managing.WebApp\
|
||||
npm run lint:fix
|
||||
npm run prettier
|
||||
5
scripts/docker-deploy-sandbox - Copy.cmd
Normal file
5
scripts/docker-deploy-sandbox - Copy.cmd
Normal 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
|
||||
5
scripts/docker-deploy-sandbox.cmd
Normal file
5
scripts/docker-deploy-sandbox.cmd
Normal 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
|
||||
22
scripts/docker-redeploy-oda.cmd
Normal file
22
scripts/docker-redeploy-oda.cmd
Normal 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"
|
||||
Reference in New Issue
Block a user