mirror of https://github.com/abpframework/abp
parent
363c3cbad5
commit
abf83ba505
@ -1,35 +1,50 @@
|
|||||||
# COMMON PATHS
|
# COMMON PATHS
|
||||||
|
|
||||||
$buildFolder = (Get-Item -Path ".\" -Verbose).FullName
|
$buildFolder = (Get-Item -Path "./" -Verbose).FullName
|
||||||
$slnFolder = Join-Path $buildFolder "..\"
|
$slnFolder = Join-Path $buildFolder "../"
|
||||||
$outputFolder = Join-Path $buildFolder "outputs"
|
$outputFolder = Join-Path $buildFolder "outputs"
|
||||||
$abpDeskFolder = Join-Path $slnFolder "src/AbpDesk"
|
$abpDeskFolder = Join-Path $slnFolder "src/AbpDesk"
|
||||||
$abpDeskWebFolder = Join-Path $abpDeskFolder "AbpDesk.Web.Mvc"
|
$abpDeskWebFolder = Join-Path $abpDeskFolder "AbpDesk.Web.Mvc"
|
||||||
|
|
||||||
# CLEAR
|
## CLEAR ######################################################################
|
||||||
|
|
||||||
Remove-Item $outputFolder -Force -Recurse
|
Remove-Item $outputFolder -Force -Recurse
|
||||||
New-Item -Path $outputFolder -ItemType Directory
|
New-Item -Path $outputFolder -ItemType Directory
|
||||||
|
|
||||||
# BUILD
|
## RESTORE NUGET PACKAGES #####################################################
|
||||||
|
|
||||||
Set-Location $slnFolder
|
Set-Location $slnFolder
|
||||||
dotnet restore
|
dotnet restore
|
||||||
|
|
||||||
# PUBLISH
|
## PUBLISH ASPDESK WEB ########################################################
|
||||||
|
|
||||||
Set-Location $abpDeskWebFolder
|
Set-Location $abpDeskWebFolder
|
||||||
dotnet publish --output (Join-Path $outputFolder "AbpDesk/Web")
|
dotnet publish --output (Join-Path $outputFolder "AbpDesk/Web")
|
||||||
|
|
||||||
# CREATE DOCKER IMAGES
|
New-Item -Path (Join-Path $outputFolder "AbpDesk/Web/PlugIns") -ItemType Directory
|
||||||
|
Copy-Item (Join-Path $abpDeskFolder "Web_PlugIns/*") (Join-Path $outputFolder "AbpDesk/Web/PlugIns/")
|
||||||
|
|
||||||
|
## PUBLISH IDENTITY HTTP API HOST #############################################
|
||||||
|
|
||||||
|
Set-Location (Join-Path $slnFolder "src/Volo.Abp.Identity.HttpApi.Host")
|
||||||
|
dotnet publish --output (Join-Path $outputFolder "AbpIdentity/HttpApiHost")
|
||||||
|
|
||||||
|
## CREATE DOCKER IMAGES #######################################################
|
||||||
|
|
||||||
Set-Location (Join-Path $outputFolder "AbpDesk/Web")
|
Set-Location (Join-Path $outputFolder "AbpDesk/Web")
|
||||||
|
|
||||||
docker rmi abpdesk/web -f
|
docker rmi abpdesk/web -f
|
||||||
docker build -t abpdesk/web .
|
docker build -t abpdesk/web .
|
||||||
|
|
||||||
Copy-Item (Join-Path $slnFolder "/docker/*.*") $outputFolder
|
Set-Location (Join-Path $outputFolder "AbpIdentity/HttpApiHost")
|
||||||
|
|
||||||
|
docker rmi abpidentity/httpapihost -f
|
||||||
|
docker build -t abpidentity/httpapihost .
|
||||||
|
|
||||||
|
## DOCKER COMPOSE FILES #######################################################
|
||||||
|
|
||||||
|
Copy-Item (Join-Path $slnFolder "docker/*.*") $outputFolder
|
||||||
|
|
||||||
# FINALIZE
|
## FINALIZE ###################################################################
|
||||||
|
|
||||||
Set-Location $outputFolder
|
Set-Location $outputFolder
|
@ -1,7 +1,9 @@
|
|||||||
FROM microsoft/aspnetcore
|
FROM microsoft/aspnetcore
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN mkdir /Web_PlugIns
|
||||||
|
RUN mv /app/PlugIns/*.* /Web_PlugIns
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "AbpDesk.Web.Mvc.dll"]
|
ENTRYPOINT ["dotnet", "AbpDesk.Web.Mvc.dll"]
|
Binary file not shown.
@ -0,0 +1,6 @@
|
|||||||
|
FROM microsoft/aspnetcore
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
ENTRYPOINT ["dotnet", "Volo.Abp.Identity.HttpApi.Host.dll"]
|
Loading…
Reference in new issue