Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
8b2ddd20
Commit
8b2ddd20
authored
Jul 05, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发布生成仓库销量情况报表
parent
59cb0fa4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
4 deletions
+48
-4
Bailun.DC.SaveWHSalesService.csproj
...DC.SaveWHSalesService/Bailun.DC.SaveWHSalesService.csproj
+2
-1
Dockerfile
Bailun.DC.SaveWHSalesService/Dockerfile
+22
-0
Program.cs
Bailun.DC.SaveWHSalesService/Program.cs
+17
-3
docker-compose.yml
docker-compose.yml
+7
-0
No files found.
Bailun.DC.SaveWHSalesService/Bailun.DC.SaveWHSalesService.csproj
View file @
8b2ddd20
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
...
...
Bailun.DC.SaveWHSalesService/Dockerfile
0 → 100644
View file @
8b2ddd20
FROM
microsoft/dotnet:2.1-runtime AS base
WORKDIR
/app
RUN
/bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
echo
'Asia/Shanghai'
>
/etc/timezone
FROM
microsoft/dotnet:2.1-sdk AS build
WORKDIR
/src
COPY
Bailun.DC.SaveWHSalesService/Bailun.DC.SaveWHSalesService.csproj Bailun.DC.SaveWHSalesService/
COPY
Bailun.DC.Common/Bailun.DC.Common.csproj Bailun.DC.Common/
COPY
Bailun.DC.DB/Bailun.DC.DB.csproj Bailun.DC.DB/
COPY
Bailun.DC.Models/Bailun.DC.Models.csproj Bailun.DC.Models/
RUN
dotnet restore Bailun.DC.SaveWHSalesService/Bailun.DC.SaveWHSalesService.csproj
COPY
. .
WORKDIR
/src/Bailun.DC.SaveWHSalesService
RUN
dotnet build Bailun.DC.SaveWHSalesService.csproj
-c
Release
-o
/app
FROM
build AS publish
RUN
dotnet publish Bailun.DC.SaveWHSalesService.csproj
-c
Release
-o
/app
FROM
base AS final
WORKDIR
/app
COPY
--from=publish /app .
ENTRYPOINT
["dotnet", "Bailun.DC.SaveWHSalesService.dll"]
Bailun.DC.SaveWHSalesService/Program.cs
View file @
8b2ddd20
using
System
;
using
Microsoft.Extensions.DependencyInjection
;
using
Microsoft.Extensions.Hosting
;
using
System
;
using
System.Threading.Tasks
;
namespace
Bailun.DC.SaveWHSalesService
namespace
Bailun.DC.SaveWHSalesService
{
{
class
Program
class
Program
{
{
static
void
Main
(
string
[]
args
)
static
async
Task
Main
(
string
[]
args
)
{
{
new
Services
().
Save
();
Console
.
WriteLine
(
"统计易仓发货单指标"
);
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
{
services
.
AddHostedService
<
Services
>();
});
await
builder
.
RunConsoleAsync
();
}
}
//static void Main(string[] args)
//{
// new Services().Save();
//}
}
}
}
}
docker-compose.yml
View file @
8b2ddd20
...
@@ -6,3 +6,10 @@ services:
...
@@ -6,3 +6,10 @@ services:
build
:
build
:
context
:
.
context
:
.
dockerfile
:
SkuWHRedundancyService/Dockerfile
dockerfile
:
SkuWHRedundancyService/Dockerfile
bailun.dc.savewhsalesservice
:
image
:
${DOCKER_REGISTRY}bailundcsavewhsalesservice
build
:
context
:
.
dockerfile
:
Bailun.DC.SaveWHSalesService/Dockerfile
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment