Browse Source

Updated to local dockerfiles and image build script

pull/24/head
Galip Tolga Erdem 5 years ago
parent
commit
b1e16ee4be
  1. 0
      apps/angular/Dockerfile.local
  2. 0
      apps/auth-server/src/EShopOnAbp.AuthServer/Dockerfile.local
  3. 0
      apps/public-web/src/EShopOnAbp.PublicWeb/Dockerfile.local
  4. 69
      build/build-images-locally.ps1
  5. 0
      gateways/web-public/src/EShopOnAbp.WebPublicGateway/Dockerfile.local
  6. 0
      gateways/web/src/EShopOnAbp.WebGateway/Dockerfile.local
  7. 0
      services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/Dockerfile.local
  8. 4
      services/basket/src/EShopOnAbp.BasketService.HttpApi.Host/Dockerfile.local
  9. 4
      services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/Dockerfile.local
  10. 0
      services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/Dockerfile.local
  11. 4
      services/ordering/src/EShopOnAbp.OrderingService.HttpApi.Host/Dockerfile.local
  12. 4
      services/payment/src/EShopOnAbp.PaymentService.HttpApi.Host/Dockerfile.local
  13. 4
      services/saas/src/EShopOnAbp.SaasService.HttpApi.Host/Dockerfile.local

0
apps/angular/Dockerfile → apps/angular/Dockerfile.local

0
apps/auth-server/src/EShopOnAbp.AuthServer/Dockerfile → apps/auth-server/src/EShopOnAbp.AuthServer/Dockerfile.local

0
apps/public-web/src/EShopOnAbp.PublicWeb/Dockerfile → apps/public-web/src/EShopOnAbp.PublicWeb/Dockerfile.local

69
build/build-images-locally.ps1

@ -0,0 +1,69 @@
param ($version='latest')
$currentFolder = $PSScriptRoot
$slnFolder = Join-Path $currentFolder "../"
$webAppFolder = Join-Path $slnFolder "apps/angular"
$authserverFolder = Join-Path $slnFolder "apps/auth-server/src/EShopOnAbp.AuthServer"
$publicWebFolder = Join-Path $slnFolder "apps/public-web/src/EShopOnAbp.PublicWeb"
$webGatewayFolder = Join-Path $slnFolder "gateways/web/src/EShopOnAbp.WebGateway"
$webPublicGatewayFolder = Join-Path $slnFolder "gateways/web-public/src/EShopOnAbp.WebPublicGateway"
$internalGatewayFolder = Join-Path $slnFolder "gateways/internal/src/EShopOnAbp.InternalGateway"
$identityServiceFolder = Join-Path $slnFolder "services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host"
$administrationServiceFolder = Join-Path $slnFolder "services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host"
$saasServiceFolder = Join-Path $slnFolder "services/saas/src/EShopOnAbp.SaasService.HttpApi.Host"
### Angular WEB App(WWW)
Write-Host "*** BUILDING WEB (WWW) ****************" -ForegroundColor Green
Set-Location $webAppFolder
yarn
# ng build --prod
npm run build:prod
docker build -t eshoponabp/app-web:$version .
### AUTH-SERVER
Write-Host "*** BUILDING AUTH-SERVER ****************" -ForegroundColor Green
Set-Location $authserverFolder
dotnet publish -c Release
docker build -f Dockerfile.local -t eshoponabp/app-authserver:$version .
### PUBLIC-WEB
Write-Host "*** BUILDING WEB-PUBLIC ****************" -ForegroundColor Green
Set-Location $publicWebFolder
dotnet publish -c Release
docker build -f Dockerfile.local -t eshoponabp/app-publicweb:$version .
### WEB-GATEWAY
Write-Host "*** BUILDING WEB-GATEWAY ****************" -ForegroundColor Green
Set-Location $webGatewayFolder
dotnet publish -c Release
docker build -f Dockerfile.local -t eshoponabp/gateway-web:$version .
### PUBLICWEB-GATEWAY
Write-Host "*** BUILDING WEB-PUBLIC-GATEWAY ****************" -ForegroundColor Green
Set-Location $webPublicGatewayFolder
dotnet publish -c Release
docker build -f Dockerfile.local -t eshoponabp/gateway-web-public:$version .
### IDENTITY-SERVICE
Write-Host "*** BUILDING IDENTITY-SERVICE ****************" -ForegroundColor Green
Set-Location $identityServiceFolder
dotnet publish -c Release
docker build -f Dockerfile.local -t eshoponabp/service-identity:$version .
### ADMINISTRATION-SERVICE
Write-Host "*** BUILDING ADMINISTRATION-SERVICE ****************" -ForegroundColor Green
Set-Location $administrationServiceFolder
dotnet publish -c Release
docker build -f Dockerfile.local -t eshoponabp/service-administration:$version .
### SAAS-SERVICE
Write-Host "*** BUILDING SAAS-SERVICE ****************" -ForegroundColor Green
Set-Location $saasServiceFolder
dotnet publish -c Release
docker build -f Dockerfile.local -t eshoponabp/service-saas:$version .
### ALL COMPLETED
Write-Host "ALL COMPLETED" -ForegroundColor Green
Set-Location $currentFolder

0
gateways/web-public/src/EShopOnAbp.WebPublicGateway/Dockerfile → gateways/web-public/src/EShopOnAbp.WebPublicGateway/Dockerfile.local

0
gateways/web/src/EShopOnAbp.WebGateway/Dockerfile → gateways/web/src/EShopOnAbp.WebGateway/Dockerfile.local

0
services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/Dockerfile → services/administration/src/EShopOnAbp.AdministrationService.HttpApi.Host/Dockerfile.local

4
services/basket/src/EShopOnAbp.BasketService.HttpApi.Host/Dockerfile.local

@ -0,0 +1,4 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0
COPY bin/Release/net6.0/publish/ app/
WORKDIR /app
ENTRYPOINT ["dotnet", "EShopOnAbp.BasketService.HttpApi.Host.dll"]

4
services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/Dockerfile.local

@ -0,0 +1,4 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0
COPY bin/Release/net6.0/publish/ app/
WORKDIR /app
ENTRYPOINT ["dotnet", "EShopOnAbp.CatalogService.HttpApi.Host.dll"]

0
services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/Dockerfile → services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/Dockerfile.local

4
services/ordering/src/EShopOnAbp.OrderingService.HttpApi.Host/Dockerfile.local

@ -0,0 +1,4 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0
COPY bin/Release/net6.0/publish/ app/
WORKDIR /app
ENTRYPOINT ["dotnet", "EShopOnAbp.OrderingService.HttpApi.Host.dll"]

4
services/payment/src/EShopOnAbp.PaymentService.HttpApi.Host/Dockerfile.local

@ -0,0 +1,4 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0
COPY bin/Release/net6.0/publish/ app/
WORKDIR /app
ENTRYPOINT ["dotnet", "EShopOnAbp.PaymentService.HttpApi.Host.dll"]

4
services/saas/src/EShopOnAbp.SaasService.HttpApi.Host/Dockerfile.local

@ -0,0 +1,4 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0
COPY bin/Release/net6.0/publish/ app/
WORKDIR /app
ENTRYPOINT ["dotnet", "EShopOnAbp.SaasService.HttpApi.Host.dll"]
Loading…
Cancel
Save