Browse Source

fixed gateway image build error

pull/24/head
Galip Tolga Erdem 5 years ago
parent
commit
bbf934d67e
  1. 44
      build/build-images.ps1
  2. 2
      gateways/web-public/src/EShopOnAbp.WebPublicGateway/Dockerfile
  3. 2
      gateways/web/src/EShopOnAbp.WebGateway/Dockerfile

44
build/build-images.ps1

@ -20,17 +20,17 @@ Write-Host "===== BUILDING APPLICATIONS =====" -ForegroundColor Yellow
# Set-Location $slnFolder
# docker build -f "$webAppFolder/Dockerfile" -t eshoponabp/app-web:$version .
### AUTH-SERVER
Write-Host "**************** BUILDING AUTH-SERVER ****************" -ForegroundColor Green
Set-Location $slnFolder
docker build -f "$authserverFolder/Dockerfile" -t eshoponabp/app-authserver:$version .
# ### AUTH-SERVER
# Write-Host "**************** BUILDING AUTH-SERVER ****************" -ForegroundColor Green
# Set-Location $slnFolder
# docker build -f "$authserverFolder/Dockerfile" -t eshoponabp/app-authserver:$version .
### PUBLIC-WEB
Write-Host "**************** BUILDING WEB-PUBLIC ****************" -ForegroundColor Green
Set-Location $slnFolder
docker build -f "$publicWebFolder/Dockerfile" -t eshoponabp/app-publicweb:$version .
# ### PUBLIC-WEB
# Write-Host "**************** BUILDING WEB-PUBLIC ****************" -ForegroundColor Green
# Set-Location $slnFolder
# docker build -f "$publicWebFolder/Dockerfile" -t eshoponabp/app-publicweb:$version .
Write-Host "===== BUILDING GATEWAYS =====" -ForegroundColor Yellow
# Write-Host "===== BUILDING GATEWAYS =====" -ForegroundColor Yellow
### WEB-GATEWAY
Write-Host "**************** BUILDING WEB-GATEWAY ****************" -ForegroundColor Green
@ -39,25 +39,25 @@ docker build -f "$webGatewayFolder/Dockerfile" -t eshoponabp/gateway-web:$versio
### PUBLICWEB-GATEWAY
Write-Host "**************** BUILDING WEB-PUBLIC-GATEWAY ****************" -ForegroundColor Green
Set-Location $webPublicGatewayFolder
Set-Location $slnFolder
docker build -f "$webPublicGatewayFolder/Dockerfile" -t eshoponabp/gateway-web-public:$version .
Write-Host "===== BUILDING MICROSERVICES =====" -ForegroundColor Yellow
### IDENTITY-SERVICE
Write-Host "**************** BUILDING IDENTITY-SERVICE ****************" -ForegroundColor Green
Set-Location $slnFolder
docker build -f "$identityServiceFolder/Dockerfile" -t eshoponabp/service-identity:$version .
# ### IDENTITY-SERVICE
# Write-Host "**************** BUILDING IDENTITY-SERVICE ****************" -ForegroundColor Green
# Set-Location $slnFolder
# docker build -f "$identityServiceFolder/Dockerfile" -t eshoponabp/service-identity:$version .
### ADMINISTRATION-SERVICE
Write-Host "**************** BUILDING ADMINISTRATION-SERVICE ****************" -ForegroundColor Green
Set-Location $slnFolder
docker build -f "$administrationServiceFolder/Dockerfile" -t eshoponabp/service-administration:$version .
# ### ADMINISTRATION-SERVICE
# Write-Host "**************** BUILDING ADMINISTRATION-SERVICE ****************" -ForegroundColor Green
# Set-Location $slnFolder
# docker build -f "$administrationServiceFolder/Dockerfile" -t eshoponabp/service-administration:$version .
### SAAS-SERVICE
Write-Host "**************** BUILDING SAAS-SERVICE ****************" -ForegroundColor Green
Set-Location $slnFolder
docker build -f "$saasServiceFolder/Dockerfile" -t eshoponabp/service-saas:$version .
# ### SAAS-SERVICE
# Write-Host "**************** BUILDING SAAS-SERVICE ****************" -ForegroundColor Green
# Set-Location $slnFolder
# docker build -f "$saasServiceFolder/Dockerfile" -t eshoponabp/service-saas:$version .
### ALL COMPLETED
Write-Host "ALL COMPLETED" -ForegroundColor Green

2
gateways/web-public/src/EShopOnAbp.WebPublicGateway/Dockerfile

@ -39,7 +39,7 @@ COPY "NuGet.Config" "NuGet.Config"
RUN dotnet restore "EShopOnAbp.sln"
COPY . .
WORKDIR "/src/gateways/web-public/src/EShopOnAbp.WebPublicGateway/EShopOnAbp.WebPublicGateway"
WORKDIR "/src/gateways/web-public/src/EShopOnAbp.WebPublicGateway"
RUN dotnet publish -c Release -o /app
# Should be used after .net6 is out of preview for better performance
# RUN dotnet publish --no-restore -c Release -o /app

2
gateways/web/src/EShopOnAbp.WebGateway/Dockerfile

@ -39,7 +39,7 @@ COPY "NuGet.Config" "NuGet.Config"
RUN dotnet restore "EShopOnAbp.sln"
COPY . .
WORKDIR "/src/gateways/web/src/EShopOnAbp.WebGateway/EShopOnAbp.WebGateway"
WORKDIR "/src/gateways/web/src/EShopOnAbp.WebGateway"
RUN dotnet publish -c Release -o /app
# Should be used after .net6 is out of preview for better performance
# RUN dotnet publish --no-restore -c Release -o /app

Loading…
Cancel
Save