Browse Source

Delete only eshop containers and images

pull/41/head
Charles Lowell 8 years ago
parent
commit
5e544c0cab
3 changed files with 12 additions and 15 deletions
  1. +4
    -5
      build-image-web-spa.ps1
  2. +4
    -5
      build-image-web.ps1
  3. +4
    -5
      build-images.ps1

+ 4
- 5
build-image-web-spa.ps1 View File

@ -67,11 +67,10 @@ dotnet restore $basketPathToJson
dotnet build $basketPathToJson dotnet build $basketPathToJson
dotnet publish $basketPathToJson -o $basketPathToPub dotnet publish $basketPathToJson -o $basketPathToPub
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q) -f
# Delete all images
docker rmi $(docker images -q)
# Delete all eshop containers
docker rm $(docker images --filter=reference="eshop/*" -q) -f
# Delete all eshop images
docker rmi $(docker images --filter=reference="eshop/*" -q)
#*** build docker images *** #*** build docker images ***
docker build -t eshop/catalog.api $catalogPathToPub docker build -t eshop/catalog.api $catalogPathToPub


+ 4
- 5
build-image-web.ps1 View File

@ -63,11 +63,10 @@ dotnet restore $basketPathToJson
dotnet build $basketPathToJson dotnet build $basketPathToJson
dotnet publish $basketPathToJson -o $basketPathToPub dotnet publish $basketPathToJson -o $basketPathToPub
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q) -f
# Delete all images
docker rmi $(docker images -q)
# Delete all eshop containers
docker rm $(docker images --filter=reference="eshop/*" -q) -f
# Delete all eshop images
docker rmi $(docker images --filter=reference="eshop/*" -q)
#*** build docker images *** #*** build docker images ***
docker build -t eshop/web $webPathToPub docker build -t eshop/web $webPathToPub


+ 4
- 5
build-images.ps1 View File

@ -77,11 +77,10 @@ dotnet restore $basketPathToJson
dotnet build $basketPathToJson dotnet build $basketPathToJson
dotnet publish $basketPathToJson -o $basketPathToPub dotnet publish $basketPathToJson -o $basketPathToPub
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q) -f
# Delete all images
docker rmi $(docker images -q)
# Delete all eshop containers
docker rm $(docker images --filter=reference="eshop/*" -q) -f
# Delete all eshop images
docker rmi $(docker images --filter=reference="eshop/*" -q)
#*** build docker images *** #*** build docker images ***
docker build -t eshop/web $webPathToPub docker build -t eshop/web $webPathToPub


Loading…
Cancel
Save