You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

8 years ago
7 years ago
  1. #!/bin/sh
  2. # List of microservices here needs to be updated to include all the new microservices (Marketing, etc.)
  3. projectList=(
  4. "../src/Services/Catalog/Catalog.API"
  5. "../src/Services/Basket/Basket.API"
  6. "../src/Services/Ordering/Ordering.API"
  7. "../src/Services/Identity/Identity.API"
  8. "../src/Web/WebMVC"
  9. "../src/Web/WebSPA"
  10. "../src/Web/WebStatus"
  11. )
  12. pushd $(pwd)/../src/Web/WebSPA
  13. npm install
  14. npm rebuild node-sass
  15. popd
  16. for project in "${projectList[@]}"
  17. do
  18. echo -e "\e[33mWorking on $(pwd)/$project"
  19. echo -e "\e[33m\tRemoving old publish output"
  20. pushd $(pwd)/$project
  21. rm -rf obj/Docker/publish
  22. echo -e "\e[33m\tBuilding and publishing projects"
  23. dotnet publish -o obj/Docker/publish -c Release
  24. popd
  25. done
  26. # remove old docker images:
  27. images=$(docker images --filter=reference="eshop/*" -q)
  28. if [ -n "$images" ]; then
  29. docker rm $(docker ps -a -q) -f
  30. echo "Deleting eShop images in local Docker repo"
  31. echo $images
  32. docker rmi $(docker images --filter=reference="eshop/*" -q) -f
  33. fi
  34. # No need to build the images, docker build or docker compose will
  35. # do that using the images and containers defined in the docker-compose.yml file.
  36. #
  37. #