Skip to content

Commit 31e5859

Browse files
committed
2 parents 4e53f20 + aa79396 commit 31e5859

138 files changed

Lines changed: 29491 additions & 1214 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

NuGet.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<packageSources>
4-
<add key="AspNetCore" value="https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json" />
4+
<add key="AspNetCore" value="https://dotnet.myget.org/F/aspnet-feb2017-patch/api/v3/index.json" />
55
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
66
</packageSources>
77
</configuration>

README.md

Lines changed: 31 additions & 28 deletions
Large diffs are not rendered by default.

README.md.saved.bak

Lines changed: 0 additions & 86 deletions
This file was deleted.

cli-linux/build-bits-linux.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
projectList=(
3+
"/src/Services/Catalog/Catalog.API"
4+
"/src/Services/Basket/Basket.API"
5+
"/src/Services/Ordering/Ordering.API"
6+
"/src/Services/Identity/Identity.API"
7+
"/src/Web/WebMVC"
8+
"/src/Web/WebSPA"
9+
)
10+
11+
# Build SPA app
12+
pushd $(pwd)/src/Web/WebSPA
13+
npm rebuild node-sass
14+
npm run build:prod
15+
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\tRestoring project"
23+
dotnet restore
24+
echo -e "\e[33m\tBuilding and publishing projects"
25+
dotnet publish -o obj/Docker/publish
26+
popd
27+
done
28+
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+
38+
# No need to build the images, docker build or docker compose will
39+
# do that using the images and containers defined in the docker-compose.yml file.

CLI-Windows/add-firewall-rules-for-sts-auth-thru-docker.ps1 renamed to cli-windows/add-firewall-rules-for-sts-auth-thru-docker.ps1

File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2+
#########################################################################################################
3+
# This "expanded Script" can be used when debugging issues when building the .NET Core bits
4+
# as it is easier to follow and debug than when using a loop (like in the optimized build-bits.ps1)
5+
#########################################################################################################
6+
17
Param([string] $rootPath)
28
$scriptPath = Split-Path $script:MyInvocation.MyCommand.Path
39

cli-windows/build-bits-simple.ps1

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This approach still has issues, but would be the simplest approach for this script
2+
# See: https://github.com/dotnet/eShopOnContainers/issues/74
3+
4+
Param([string] $rootPath)
5+
$scriptPath = Split-Path $script:MyInvocation.MyCommand.Path
6+
7+
Write-Host "Current script directory is $scriptPath" -ForegroundColor Yellow
8+
9+
if ([string]::IsNullOrEmpty($rootPath)) {
10+
$rootPath = "$scriptPath\.."
11+
}
12+
Write-Host "Root path used is $rootPath" -ForegroundColor Yellow
13+
14+
15+
$SolutionFilePath = $rootPath + "eShopOnContainers-ServicesAndWebApps.sln"
16+
17+
dotnet restore $SolutionFilePath
18+
19+
dotnet publish $SolutionFilePath -c Release -o .\obj\Docker\publish
20+

0 commit comments

Comments
 (0)