Until adding these, the project would not build correctly on a Mac. script working for SPA Add execute permissions to build-bits.sh on macOS fix a rebase / automatic merge issue. Somehow, the MVC image got in there twice. update content nodes Bug workaround for for the CLI. It turns out that the CLI does not handle content nodes that have multiple paths. Instead, multiple nodes are needed. use the standard names for the web docker images. fix a typo and update the csproj content listings. Also, execute nom install as part of publishing the spa application.
36 lines
1.0 KiB
Bash
Executable File
36 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
projectList=(
|
|
"src/Services/Catalog/Catalog.API"
|
|
"src/Services/Basket/Basket.API"
|
|
"src/Services/Ordering/Ordering.API"
|
|
"src/Services/Identity/Identity.API"
|
|
"src/Web/WebMVC"
|
|
"src/Web/WebSPA/eShopOnContainers.WebSPA"
|
|
)
|
|
|
|
for project in "${projectList[@]}"
|
|
do
|
|
echo -e "\e[33mWorking on $(pwd)/$project"
|
|
echo -e "\e[33m\tRemoving old publish output"
|
|
pushd $(pwd)/$project
|
|
rm -rf obj/Docker/publish
|
|
echo -e "\e[33m\tRestoring project"
|
|
dotnet restore
|
|
echo -e "\e[33m\tBuilding and publishing projects"
|
|
dotnet publish -o obj/Docker/publish
|
|
popd
|
|
done
|
|
|
|
# remove old docker images:
|
|
images=$(docker images --filter=reference="eshop/*" -q)
|
|
if [ -n "$images" ]; then
|
|
docker rm $(docker ps -a -q) -f
|
|
echo "Deleting eShop images in local Docker repo"
|
|
echo $images
|
|
docker rmi $(docker images --filter=reference="eshop/*" -q) -f
|
|
fi
|
|
|
|
# No need to build the images, docker build or docker compose will
|
|
# do that using the images and containers defined in the docker-compose.yml file.
|