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.

47 lines
1.3 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/Web/WebMVC"
  5. "../src/Web/WebSPA"
  6. "../src/Services/Identity/Identity.API"
  7. "../src/Services/Catalog/Catalog.API"
  8. "../src/Services/Ordering/Ordering.API"
  9. "../src/Services/Basket/Basket.API"
  10. "../src/Services/Location/Locations.API"
  11. "../src/Services/Marketing/Marketing.API"
  12. "../src/Services/Payment/Payment.API"
  13. "../src/Web/WebStatus"
  14. )
  15. pushd $(pwd)/../src/Web/WebSPA
  16. npm install
  17. npm rebuild node-sass
  18. popd
  19. for project in "${projectList[@]}"
  20. do
  21. echo -e "\e[33mWorking on $(pwd)/$project"
  22. echo -e "\e[33m\tRemoving old publish output"
  23. pushd $(pwd)/$project
  24. rm -rf obj/Docker/publish
  25. echo -e "\e[33m\tBuilding and publishing projects"
  26. dotnet publish -o obj/Docker/publish -c Release
  27. popd
  28. done
  29. # remove old docker images:
  30. images=$(docker images --filter=reference="eshop/*" -q)
  31. if [ -n "$images" ]; then
  32. docker rm $(docker ps -a -q) -f
  33. echo "Deleting eShop images in local Docker repo"
  34. echo $images
  35. docker rmi $(docker images --filter=reference="eshop/*" -q) -f
  36. fi
  37. # No need to build the images, docker build or docker compose will
  38. # do that using the images and containers defined in the docker-compose.yml file.
  39. #
  40. #