Skip to content

Commit 5ada2ad

Browse files
author
Carlos Cañizares Estévez
committed
Added SPA Web project, Updated docker-compose to include the new SPA container, Updated build script to include new SPA application, Update SQL image to public released yesterday from Microsoft.
1 parent c452088 commit 5ada2ad

91 files changed

Lines changed: 2891 additions & 3 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.

build-images.ps1

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ dotnet restore $webPathToJson
1818
dotnet build $webPathToJson
1919
dotnet publish $webPathToJson -o $webPathToPub
2020

21+
# *** WebSPA image ***
22+
$webSPAPathToJson = $scriptPath + "\src\Web\WebSPA\eShopOnContainers.WebSPA\project.json"
23+
Write-Host "webSPAPathToJson is $webSPAPathToJson" -ForegroundColor Yellow
24+
$webSPAPathToPub = $scriptPath + "\pub\webSPA"
25+
Write-Host "webSPAPathToPub is $webSPAPathToPub" -ForegroundColor Yellow
26+
27+
Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue
28+
dotnet restore $webSPAPathToJson
29+
dotnet build $webSPAPathToJson
30+
dotnet publish $webSPAPathToJson -o $webSPAPathToPub
31+
32+
2133
#*** Catalog service image ***
2234
$catalogPathToJson = $scriptPath + "\src\Services\Catalog\Catalog.API\project.json"
2335
Write-Host "catalogPathToJson is $catalogPathToJson" -ForegroundColor Yellow
@@ -55,4 +67,4 @@ docker build -t eshop/web $webPathToPub
5567
docker build -t eshop/catalog.api $catalogPathToPub
5668
docker build -t eshop/ordering.api $orderingPathToPub
5769
docker build -t eshop/basket.api $basketPathToPub
58-
70+
docker build -t eshop/webspa $webSPAPathToPub

docker-compose.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ services:
1616
- identity.data
1717
- basket.api
1818

19+
webspa:
20+
image: eshop/webspa
21+
build:
22+
context: .
23+
dockerfile: Dockerfile
24+
environment:
25+
- CatalogUrl=http://catalog.api
26+
- OrderingUrl=http://ordering.api
27+
ports:
28+
- "5104:80"
29+
depends_on:
30+
- catalog.api
31+
- identity.data
32+
- basket.api
33+
1934
catalog.api:
2035
image: eshop/catalog.api
2136
environment:
@@ -28,7 +43,7 @@ services:
2843
- catalog.data
2944

3045
catalog.data:
31-
image: eshop/mssql-server-private-preview
46+
image: microsoft/mssql-server-linux
3247
environment:
3348
- SA_PASSWORD=Pass@word
3449
- ACCEPT_EULA=Y
@@ -56,7 +71,7 @@ services:
5671
- "5432:1433"
5772

5873
identity.data:
59-
image: eshop/mssql-server-private-preview
74+
image: microsoft/mssql-server-linux
6075
environment:
6176
- SA_PASSWORD=Pass@word
6277
- ACCEPT_EULA=Y

eShopOnContainers.sln

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared Code", "Shared Code"
5858
EndProject
5959
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Targets", "Targets", "{9CC7814B-72A6-465B-A61C-57B512DEE303}"
6060
EndProject
61+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "eShopOnContainers.WebSPA", "src\Web\WebSPA\eShopOnContainers.WebSPA\eShopOnContainers.WebSPA.xproj", "{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}"
62+
EndProject
6163
Global
6264
GlobalSection(SolutionConfigurationPlatforms) = preSolution
6365
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
@@ -506,6 +508,54 @@ Global
506508
{C3C1E2CF-B1F7-4654-BBDC-50143DB22E0B}.Release|x86.ActiveCfg = Release|x86
507509
{C3C1E2CF-B1F7-4654-BBDC-50143DB22E0B}.Release|x86.Build.0 = Release|x86
508510
{C3C1E2CF-B1F7-4654-BBDC-50143DB22E0B}.Release|x86.Deploy.0 = Release|x86
511+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
512+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
513+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
514+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
515+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
516+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
517+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
518+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
519+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
520+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
521+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
522+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
523+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
524+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.AppStore|Any CPU.Build.0 = Debug|Any CPU
525+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.AppStore|ARM.ActiveCfg = Debug|Any CPU
526+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.AppStore|ARM.Build.0 = Debug|Any CPU
527+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
528+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.AppStore|iPhone.Build.0 = Debug|Any CPU
529+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
530+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
531+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.AppStore|x64.ActiveCfg = Debug|Any CPU
532+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.AppStore|x64.Build.0 = Debug|Any CPU
533+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.AppStore|x86.ActiveCfg = Debug|Any CPU
534+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.AppStore|x86.Build.0 = Debug|Any CPU
535+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
536+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Debug|Any CPU.Build.0 = Debug|Any CPU
537+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Debug|ARM.ActiveCfg = Debug|Any CPU
538+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Debug|ARM.Build.0 = Debug|Any CPU
539+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Debug|iPhone.ActiveCfg = Debug|Any CPU
540+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Debug|iPhone.Build.0 = Debug|Any CPU
541+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
542+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
543+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Debug|x64.ActiveCfg = Debug|Any CPU
544+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Debug|x64.Build.0 = Debug|Any CPU
545+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Debug|x86.ActiveCfg = Debug|Any CPU
546+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Debug|x86.Build.0 = Debug|Any CPU
547+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Release|Any CPU.ActiveCfg = Release|Any CPU
548+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Release|Any CPU.Build.0 = Release|Any CPU
549+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Release|ARM.ActiveCfg = Release|Any CPU
550+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Release|ARM.Build.0 = Release|Any CPU
551+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Release|iPhone.ActiveCfg = Release|Any CPU
552+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Release|iPhone.Build.0 = Release|Any CPU
553+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
554+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
555+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Release|x64.ActiveCfg = Release|Any CPU
556+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Release|x64.Build.0 = Release|Any CPU
557+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Release|x86.ActiveCfg = Release|Any CPU
558+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2}.Release|x86.Build.0 = Release|Any CPU
509559
EndGlobalSection
510560
GlobalSection(SolutionProperties) = preSolution
511561
HideSolutionNode = FALSE
@@ -533,5 +583,6 @@ Global
533583
{C3C1E2CF-B1F7-4654-BBDC-50143DB22E0B} = {9CC7814B-72A6-465B-A61C-57B512DEE303}
534584
{778289CA-31F7-4464-8C2A-612EE846F8A7} = {F61357CE-1CC2-410E-8776-B16EEBC98EB8}
535585
{9CC7814B-72A6-465B-A61C-57B512DEE303} = {F61357CE-1CC2-410E-8776-B16EEBC98EB8}
586+
{9842DB3A-1391-48C7-A49C-2FABD0A18AC2} = {E279BF0F-7F66-4F3A-A3AB-2CDA66C1CD04}
536587
EndGlobalSection
537588
EndGlobal
Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
coverage/**/**
5+
client/**/*.js
6+
/doc
7+
client/**/*.js.map
8+
npm-debug.log*
9+
# User-specific files
10+
*.suo
11+
*.user
12+
*.userosscache
13+
*.sln.docstates
14+
15+
# User-specific files (MonoDevelop/Xamarin Studio)
16+
*.userprefs
17+
18+
# Build results
19+
[Dd]ebug/
20+
[Dd]ebugPublic/
21+
[Rr]elease/
22+
[Rr]eleases/
23+
x64/
24+
x86/
25+
bld/
26+
[Bb]in/
27+
[Oo]bj/
28+
29+
# Visual Studio 2015 cache/options directory
30+
.vs/
31+
32+
# MSTest test Results
33+
[Tt]est[Rr]esult*/
34+
[Bb]uild[Ll]og.*
35+
36+
# NUNIT
37+
*.VisualState.xml
38+
TestResult.xml
39+
40+
# Build Results of an ATL Project
41+
[Dd]ebugPS/
42+
[Rr]eleasePS/
43+
dlldata.c
44+
45+
# DNX
46+
project.lock.json
47+
artifacts/
48+
49+
*_i.c
50+
*_p.c
51+
*_i.h
52+
*.ilk
53+
*.meta
54+
*.obj
55+
*.pch
56+
*.pdb
57+
*.pgc
58+
*.pgd
59+
*.rsp
60+
*.sbr
61+
*.tlb
62+
*.tli
63+
*.tlh
64+
*.tmp
65+
*.tmp_proj
66+
*.log
67+
*.vspscc
68+
*.vssscc
69+
.builds
70+
*.pidb
71+
*.svclog
72+
*.scc
73+
74+
# Chutzpah Test files
75+
_Chutzpah*
76+
77+
# Visual C++ cache files
78+
ipch/
79+
*.aps
80+
*.ncb
81+
*.opensdf
82+
*.sdf
83+
*.cachefile
84+
85+
# Visual Studio profiler
86+
*.psess
87+
*.vsp
88+
*.vspx
89+
90+
# TFS 2012 Local Workspace
91+
$tf/
92+
93+
# Guidance Automation Toolkit
94+
*.gpState
95+
96+
# ReSharper is a .NET coding add-in
97+
_ReSharper*/
98+
*.[Rr]e[Ss]harper
99+
*.DotSettings.user
100+
101+
# JustCode is a .NET coding add-in
102+
.JustCode
103+
104+
# TeamCity is a build add-in
105+
_TeamCity*
106+
107+
# DotCover is a Code Coverage Tool
108+
*.dotCover
109+
110+
# NCrunch
111+
_NCrunch_*
112+
.*crunch*.local.xml
113+
114+
# MightyMoose
115+
*.mm.*
116+
AutoTest.Net/
117+
118+
# Web workbench (sass)
119+
.sass-cache/
120+
121+
# Installshield output folder
122+
[Ee]xpress/
123+
124+
# DocProject is a documentation generator add-in
125+
DocProject/buildhelp/
126+
DocProject/Help/*.HxT
127+
DocProject/Help/*.HxC
128+
DocProject/Help/*.hhc
129+
DocProject/Help/*.hhk
130+
DocProject/Help/*.hhp
131+
DocProject/Help/Html2
132+
DocProject/Help/html
133+
134+
# Click-Once directory
135+
publish/
136+
137+
# Publish Web Output
138+
*.[Pp]ublish.xml
139+
*.azurePubxml
140+
## TODO: Comment the next line if you want to checkin your
141+
## web deploy settings but do note that will include unencrypted
142+
## passwords
143+
#*.pubxml
144+
145+
*.publishproj
146+
147+
# NuGet Packages
148+
*.nupkg
149+
# The packages folder can be ignored because of Package Restore
150+
**/packages/*
151+
# except build/, which is used as an MSBuild target.
152+
!**/packages/build/
153+
# Uncomment if necessary however generally it will be regenerated when needed
154+
#!**/packages/repositories.config
155+
156+
# Windows Azure Build Output
157+
csx/
158+
*.build.csdef
159+
160+
# Windows Store app package directory
161+
AppPackages/
162+
163+
# Visual Studio cache files
164+
# files ending in .cache can be ignored
165+
*.[Cc]ache
166+
# but keep track of directories ending in .cache
167+
!*.[Cc]ache/
168+
169+
# Others
170+
ClientBin/
171+
[Ss]tyle[Cc]op.*
172+
~$*
173+
*~
174+
*.dbmdl
175+
*.dbproj.schemaview
176+
*.pfx
177+
*.publishsettings
178+
node_modules/
179+
bower_components/
180+
**/wwwroot/tmp/
181+
**/wwwroot/*.bundle.map
182+
**/wwwroot/*.js
183+
/wwwroot/dist/
184+
185+
186+
orleans.codegen.cs
187+
188+
# RIA/Silverlight projects
189+
Generated_Code/
190+
191+
# Backup & report files from converting an old project file
192+
# to a newer Visual Studio version. Backup files are not needed,
193+
# because we have git ;-)
194+
_UpgradeReport_Files/
195+
Backup*/
196+
UpgradeLog*.XML
197+
UpgradeLog*.htm
198+
199+
# SQL Server files
200+
*.mdf
201+
*.ldf
202+
203+
# Business Intelligence projects
204+
*.rdl.data
205+
*.bim.layout
206+
*.bim_*.settings
207+
208+
# Microsoft Fakes
209+
FakesAssemblies/
210+
211+
# Node.js Tools for Visual Studio
212+
.ntvs_analysis.dat
213+
214+
# Visual Studio 6 build log
215+
*.plg
216+
217+
# Visual Studio 6 workspace options file
218+
*.opt
219+
220+
# LightSwitch generated files
221+
GeneratedArtifacts/
222+
_Pvt_Extensions/
223+
ModelManifest.xml

0 commit comments

Comments
 (0)