Skip to content

Commit 11a5293

Browse files
committed
Merge branch 'k8s-update' into dev
# Conflicts: # docker-compose.yml
2 parents 71f1a67 + f17e350 commit 11a5293

12 files changed

Lines changed: 463 additions & 79 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,4 @@ pub/
259259
#Ignore marker-file used to know which docker files we have.
260260
.eshopdocker_*
261261
/src/Web/WebMVC/wwwroot/lib
262+
/src/Web/WebMVC/wwwroot/css/site.min.css

cli-windows/build-images.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Param([string] $imageTag)
2+
3+
$scriptPath = Split-Path $script:MyInvocation.MyCommand.Path
4+
5+
if ([string]::IsNullOrEmpty($imageTag)) {
6+
$imageTag = $(git rev-parse --abbrev-ref HEAD)
7+
}
8+
9+
Write-Host "Building images with tag $imageTag" -ForegroundColor Yellow
10+
$env:TAG=$imageTag
11+
docker-compose -f "$scriptPath\..\docker-compose.yml" build

docker-compose-windows.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '2.1'
22

33
services:
44
basket.api:
5-
image: eshop/basket.api-win
5+
image: eshop/basket.api-win:${TAG:-latest}
66
build:
77
context: ./src/Services/Basket/Basket.API
88
dockerfile: Dockerfile.nanowin
@@ -11,31 +11,31 @@ services:
1111
- identity.api
1212

1313
catalog.api:
14-
image: eshop/catalog.api-win
14+
image: eshop/catalog.api-win:${TAG:-latest}
1515
build:
1616
context: ./src/Services/Catalog/Catalog.API
1717
dockerfile: Dockerfile.nanowin
1818
depends_on:
1919
- sql.data
2020

2121
identity.api:
22-
image: eshop/identity.api-win
22+
image: eshop/identity.api-win:${TAG:-latest}
2323
build:
2424
context: ./src/Services/Identity/Identity.API
2525
dockerfile: Dockerfile.nanowin
2626
depends_on:
2727
- sql.data
2828

2929
ordering.api:
30-
image: eshop/ordering.api-win
30+
image: eshop/ordering.api-win:${TAG:-latest}
3131
build:
3232
context: ./src/Services/Ordering/Ordering.API
3333
dockerfile: Dockerfile.nanowin
3434
depends_on:
3535
- sql.data
3636

3737
webspa:
38-
image: eshop/webspa-win
38+
image: eshop/webspa-win:${TAG:-latest}
3939
build:
4040
context: ./src/Web/WebSPA
4141
dockerfile: Dockerfile.nanowin
@@ -44,7 +44,7 @@ services:
4444
- basket.api
4545

4646
webmvc:
47-
image: eshop/webmvc-win
47+
image: eshop/webmvc-win:${TAG:-latest}
4848
build:
4949
context: ./src/Web/WebMVC
5050
dockerfile: Dockerfile.nanowin
@@ -55,7 +55,7 @@ services:
5555
- basket.api
5656

5757
locations.api:
58-
image: locations.api
58+
image: eshop/locations.api:${TAG:-latest}
5959
build:
6060
context: ./src/Services/Location/Locations.API
6161
dockerfile: Dockerfile
@@ -64,7 +64,7 @@ services:
6464
- rabbitmq
6565

6666
marketing.api:
67-
image: eshop/marketing.api
67+
image: eshop/marketing.api:${TAG:-latest}
6868
build:
6969
context: ./src/Services/Marketing/Marketing.API
7070
dockerfile: Dockerfile

docker-compose.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
version: '2'
2-
1+
version: '3'
32

43
services:
54
graceperiodmanager:
6-
image: eshop/graceperiodmanager
5+
image: eshop/graceperiodmanager:${TAG:-latest}
76
build:
87
context: ./src/Services/GracePeriod/GracePeriodManager
98
dockerfile: Dockerfile
@@ -12,7 +11,7 @@ services:
1211
- rabbitmq
1312

1413
basket.api:
15-
image: eshop/basket.api
14+
image: eshop/basket.api:${TAG:-latest}
1615
build:
1716
context: ./src/Services/Basket/Basket.API
1817
dockerfile: Dockerfile
@@ -21,7 +20,7 @@ services:
2120
- identity.api
2221

2322
catalog.api:
24-
image: eshop/catalog.api
23+
image: eshop/catalog.api:${TAG:-latest}
2524
build:
2625
context: ./src/Services/Catalog/Catalog.API
2726
dockerfile: Dockerfile
@@ -30,15 +29,15 @@ services:
3029
- rabbitmq
3130

3231
identity.api:
33-
image: eshop/identity.api
32+
image: eshop/identity.api:${TAG:-latest}
3433
build:
3534
context: ./src/Services/Identity/Identity.API
3635
dockerfile: Dockerfile
3736
depends_on:
3837
- sql.data
3938

4039
ordering.api:
41-
image: eshop/ordering.api
40+
image: eshop/ordering.api:${TAG:-latest}
4241
build:
4342
context: ./src/Services/Ordering/Ordering.API
4443
dockerfile: Dockerfile
@@ -47,7 +46,7 @@ services:
4746
- rabbitmq
4847

4948
marketing.api:
50-
image: eshop/marketing.api
49+
image: eshop/marketing.api:${TAG:-latest}
5150
build:
5251
context: ./src/Services/Marketing/Marketing.API
5352
dockerfile: Dockerfile
@@ -58,7 +57,7 @@ services:
5857
- rabbitmq
5958

6059
webspa:
61-
image: eshop/webspa
60+
image: eshop/webspa:${TAG:-latest}
6261
build:
6362
context: ./src/Web/WebSPA
6463
dockerfile: Dockerfile
@@ -67,7 +66,7 @@ services:
6766
- basket.api
6867

6968
webmvc:
70-
image: eshop/webmvc
69+
image: eshop/webmvc:${TAG:-latest}
7170
build:
7271
context: ./src/Web/WebMVC
7372
dockerfile: Dockerfile
@@ -95,21 +94,21 @@ services:
9594
- "5672:5672"
9695

9796
webstatus:
98-
image: eshop/webstatus
97+
image: eshop/webstatus:${TAG:-latest}
9998
build:
10099
context: ./src/Web/WebStatus
101100
dockerfile: Dockerfile
102101

103102
payment.api:
104-
image: eshop/payment.api
103+
image: eshop/payment.api:${TAG:-latest}
105104
build:
106105
context: ./src/Services/Payment/Payment.API
107106
dockerfile: Dockerfile
108107
depends_on:
109108
- rabbitmq
110109

111110
locations.api:
112-
image: eshop/locations.api
111+
image: eshop/locations.api:${TAG:-latest}
113112
build:
114113
context: ./src/Services/Location/Locations.API
115114
dockerfile: Dockerfile

global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"sdk": {
3+
"version":"1.0.4"
4+
}
5+
}

0 commit comments

Comments
 (0)