mirror of
https://github.com/fjykTec/ModernWMS.git
synced 2024-09-20 06:56:08 +08:00
feat(Global):Update the readme.
This commit is contained in:
parent
127f705137
commit
44b5928afa
388
.gitignore
vendored
Normal file
388
.gitignore
vendored
Normal file
|
@ -0,0 +1,388 @@
|
|||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
##
|
||||
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||
|
||||
# User-specific files
|
||||
*.rsuser
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
|
||||
# Mono auto generated files
|
||||
mono_crash.*
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
[Ww][Ii][Nn]32/
|
||||
[Aa][Rr][Mm]/
|
||||
[Aa][Rr][Mm]64/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Ll]og/
|
||||
[Ll]ogs/
|
||||
|
||||
# Visual Studio 2015/2017 cache/options directory
|
||||
.vs/
|
||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||
#wwwroot/
|
||||
|
||||
# Visual Studio 2017 auto generated files
|
||||
Generated\ Files/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
# NUnit
|
||||
*.VisualState.xml
|
||||
TestResult.xml
|
||||
nunit-*.xml
|
||||
|
||||
# Build Results of an ATL Project
|
||||
[Dd]ebugPS/
|
||||
[Rr]eleasePS/
|
||||
dlldata.c
|
||||
|
||||
# Benchmark Results
|
||||
BenchmarkDotNet.Artifacts/
|
||||
|
||||
# .NET Core
|
||||
project.lock.json
|
||||
project.fragment.lock.json
|
||||
artifacts/
|
||||
|
||||
# ASP.NET Scaffolding
|
||||
ScaffoldingReadMe.txt
|
||||
|
||||
# StyleCop
|
||||
StyleCopReport.xml
|
||||
|
||||
# Files built by Visual Studio
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_h.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.iobj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.ipdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*_wpftmp.csproj
|
||||
*.log
|
||||
*.tlog
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
*.pidb
|
||||
*.svclog
|
||||
*.scc
|
||||
|
||||
# Chutzpah Test files
|
||||
_Chutzpah*
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opendb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
*.cachefile
|
||||
*.VC.db
|
||||
*.VC.VC.opendb
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
*.sap
|
||||
|
||||
# Visual Studio Trace Files
|
||||
*.e2e
|
||||
|
||||
# TFS 2012 Local Workspace
|
||||
$tf/
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*/
|
||||
*.[Rr]e[Ss]harper
|
||||
*.DotSettings.user
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# AxoCover is a Code Coverage Tool
|
||||
.axoCover/*
|
||||
!.axoCover/settings.json
|
||||
|
||||
# Coverlet is a free, cross platform Code Coverage Tool
|
||||
coverage*.json
|
||||
coverage*.xml
|
||||
coverage*.info
|
||||
|
||||
# Visual Studio code coverage results
|
||||
*.coverage
|
||||
*.coveragexml
|
||||
|
||||
# NCrunch
|
||||
_NCrunch_*
|
||||
.*crunch*.local.xml
|
||||
nCrunchTemp_*
|
||||
|
||||
# MightyMoose
|
||||
*.mm.*
|
||||
AutoTest.Net/
|
||||
|
||||
# Web workbench (sass)
|
||||
.sass-cache/
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress/
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish/
|
||||
|
||||
# Publish Web Output
|
||||
*.[Pp]ublish.xml
|
||||
*.azurePubxml
|
||||
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||
# but database connection strings (with potential passwords) will be unencrypted
|
||||
*.pubxml
|
||||
*.publishproj
|
||||
|
||||
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||
# in these scripts will be unencrypted
|
||||
PublishScripts/
|
||||
|
||||
# NuGet Packages
|
||||
*.nupkg
|
||||
# NuGet Symbol Packages
|
||||
*.snupkg
|
||||
# The packages folder can be ignored because of Package Restore
|
||||
**/[Pp]ackages/*
|
||||
# except build/, which is used as an MSBuild target.
|
||||
!**/[Pp]ackages/build/
|
||||
# Uncomment if necessary however generally it will be regenerated when needed
|
||||
#!**/[Pp]ackages/repositories.config
|
||||
# NuGet v3's project.json files produces more ignorable files
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
||||
# Nuget personal access tokens and Credentials
|
||||
nuget.config
|
||||
|
||||
# Microsoft Azure Build Output
|
||||
csx/
|
||||
*.build.csdef
|
||||
|
||||
# Microsoft Azure Emulator
|
||||
ecf/
|
||||
rcf/
|
||||
|
||||
# Windows Store app package directories and files
|
||||
AppPackages/
|
||||
BundleArtifacts/
|
||||
Package.StoreAssociation.xml
|
||||
_pkginfo.txt
|
||||
*.appx
|
||||
*.appxbundle
|
||||
*.appxupload
|
||||
|
||||
# Visual Studio cache files
|
||||
# files ending in .cache can be ignored
|
||||
*.[Cc]ache
|
||||
# but keep track of directories ending in .cache
|
||||
!?*.[Cc]ache/
|
||||
|
||||
# Others
|
||||
ClientBin/
|
||||
~$*
|
||||
*~
|
||||
*.dbmdl
|
||||
*.dbproj.schemaview
|
||||
*.jfm
|
||||
*.pfx
|
||||
*.publishsettings
|
||||
orleans.codegen.cs
|
||||
|
||||
# Including strong name files can present a security risk
|
||||
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||
#*.snk
|
||||
|
||||
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||
#bower_components/
|
||||
|
||||
# RIA/Silverlight projects
|
||||
Generated_Code/
|
||||
|
||||
# Backup & report files from converting an old project file
|
||||
# to a newer Visual Studio version. Backup files are not needed,
|
||||
# because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
UpgradeLog*.htm
|
||||
ServiceFabricBackup/
|
||||
*.rptproj.bak
|
||||
|
||||
# SQL Server files
|
||||
*.mdf
|
||||
*.ldf
|
||||
*.ndf
|
||||
|
||||
# Business Intelligence projects
|
||||
*.rdl.data
|
||||
*.bim.layout
|
||||
*.bim_*.settings
|
||||
*.rptproj.rsuser
|
||||
*- [Bb]ackup.rdl
|
||||
*- [Bb]ackup ([0-9]).rdl
|
||||
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||
|
||||
# Microsoft Fakes
|
||||
FakesAssemblies/
|
||||
|
||||
# GhostDoc plugin setting file
|
||||
*.GhostDoc.xml
|
||||
|
||||
# Node.js Tools for Visual Studio
|
||||
.ntvs_analysis.dat
|
||||
node_modules/
|
||||
|
||||
# Visual Studio 6 build log
|
||||
*.plg
|
||||
|
||||
# Visual Studio 6 workspace options file
|
||||
*.opt
|
||||
|
||||
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||
*.vbw
|
||||
|
||||
# Visual Studio LightSwitch build output
|
||||
**/*.HTMLClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/ModelManifest.xml
|
||||
**/*.Server/GeneratedArtifacts
|
||||
**/*.Server/ModelManifest.xml
|
||||
_Pvt_Extensions
|
||||
|
||||
# Paket dependency manager
|
||||
.paket/paket.exe
|
||||
paket-files/
|
||||
|
||||
# FAKE - F# Make
|
||||
.fake/
|
||||
|
||||
# CodeRush personal settings
|
||||
.cr/personal
|
||||
|
||||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
*.pyc
|
||||
|
||||
# Cake - Uncomment if you are using it
|
||||
# tools/**
|
||||
# !tools/packages.config
|
||||
|
||||
# Tabs Studio
|
||||
*.tss
|
||||
|
||||
# Telerik's JustMock configuration file
|
||||
*.jmconfig
|
||||
|
||||
# BizTalk build output
|
||||
*.btp.cs
|
||||
*.btm.cs
|
||||
*.odx.cs
|
||||
*.xsd.cs
|
||||
|
||||
# OpenCover UI analysis results
|
||||
OpenCover/
|
||||
|
||||
# Azure Stream Analytics local run output
|
||||
ASALocalRun/
|
||||
|
||||
# MSBuild Binary and Structured Log
|
||||
*.binlog
|
||||
|
||||
# NVidia Nsight GPU debugger configuration file
|
||||
*.nvuser
|
||||
|
||||
# MFractors (Xamarin productivity tool) working folder
|
||||
.mfractor/
|
||||
|
||||
# Local History for Visual Studio
|
||||
.localhistory/
|
||||
|
||||
# BeatPulse healthcheck temp database
|
||||
healthchecksdb
|
||||
|
||||
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||
MigrationBackup/
|
||||
|
||||
# Ionide (cross platform F# VS Code tools) working folder
|
||||
.ionide/
|
||||
|
||||
# Fody - auto-generated XML schema
|
||||
FodyWeavers.xsd
|
||||
|
||||
# VS Code files for those working on multiple tools
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
# Windows Installer files from build outputs
|
||||
*.cab
|
||||
*.msi
|
||||
*.msix
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# JetBrains Rider
|
||||
.idea/
|
||||
*.sln.iml
|
198
README copy.md
Normal file
198
README copy.md
Normal file
|
@ -0,0 +1,198 @@
|
|||
# ModernWMS - 仓库管理系统
|
||||
|
||||
<div align="center">
|
||||
<img src="/logo.png" alt="ModernWMS logo" width="200" height="auto" />
|
||||
<h1>ModernWMS</h1>
|
||||
<p>开源的简易完整的仓库管理系统</p>
|
||||
|
||||
<!-- Badges -->
|
||||
[![License: MIT](https://img.shields.io/badge/license-MIT-orange.svg)](https://opensource.org/licenses/MIT/)
|
||||
![Release Version (latest Version)](https://img.shields.io/github/v/release/fjykTec/ModernWMS?color=orange&include_prereleases)
|
||||
![QR Code Support](https://img.shields.io/badge/QR--Code-Support-orange.svg)
|
||||
![Docker Support](https://img.shields.io/badge/Docker-Support-orange.svg)
|
||||
![i18n Support](https://img.shields.io/badge/i18n-Support-orange.svg)
|
||||
[![MySQL8](https://img.shields.io/badge/MySQL-8.0%2B-orange)](https://www.mysql.com/downloads/)
|
||||
|
||||
![repo size](https://img.shields.io/github/repo-size/fjykTec/ModernWMS)
|
||||
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/fjykTec/ModernWMS)
|
||||
<!--![Contributors](https://img.shields.io/github/contributors/fjykTec/ModernWMS?color=blue) -->
|
||||
|
||||
![GitHub Org's stars](https://img.shields.io/github/stars/ModernWMS?style=social)
|
||||
![GitHub Follows](https://img.shields.io/github/followers/ModernWMS?style=social)
|
||||
![GitHub Forks](https://img.shields.io/github/forks/fjykTec/ModernWMS?style=social)
|
||||
![GitHub Watch](https://img.shields.io/github/watchers/fjykTec/ModernWMS?style=social)
|
||||
![Gitee Stars](https://gitee.com/modernwms/ModernWMS/badge/star.svg?theme=social)
|
||||
![Gitee Forks](https://gitee.com/modernwms/ModernWMS/badge/fork.svg?theme=social)
|
||||
|
||||
![.NET](https://img.shields.io/badge/.NET-7.0.0-green)
|
||||
![Vuetify Cli](https://img.shields.io/badge/Vuetify/cli-3.0.4-green)
|
||||
![Vue](https://img.shields.io/badge/Vue-3.2.45-green)
|
||||
![TypeScript](https://img.shields.io/badge/TypeScript-4.1.2-green)
|
||||
![VXE Table](https://img.shields.io/badge/VXETable-4.3.7-green)
|
||||
![Vite](https://img.shields.io/badge/Vite-4.0.0-green)
|
||||
![NodeJS](https://img.shields.io/badge/NodeJS-16.13.1-green)
|
||||
</div>
|
||||
|
||||
# Contents - 目录
|
||||
|
||||
- [ModernWMS - 仓库管理系统](#modernwms---仓库管理系统)
|
||||
- [Contents - 目录](#contents---目录)
|
||||
- [Introduction - 介绍](#introduction---介绍)
|
||||
- [Requirements - 必要条件](#requirements---必要条件)
|
||||
- [Linux OS](#linux-os)
|
||||
- [Windows OS](#windows-os)
|
||||
- [Installation - 安装](#installation---安装)
|
||||
- [Linux](#linux)
|
||||
- [Windows](#windows)
|
||||
- [Docker](#docker)
|
||||
- [Usage - 用法](#usage---用法)
|
||||
- [Contact - 联系](#contact---联系)
|
||||
- [License - 版权信息](#license---版权信息)
|
||||
|
||||
## Introduction - 介绍
|
||||
该库存管理系统是,我们从多年ERP系统研发中总结出来的一套针对小型物流仓储供应链流程。 在工作过程中我们很多的中小企业,由于IT预算有限,所以无法用上适合他们的系统,却又实实在在存在仓储管理方面的需求,以此我们开始了这个项目。 为了帮助一些有需要的用户。
|
||||
|
||||
## Requirements - 必要条件
|
||||
|
||||
### Linux OS
|
||||
|
||||
+ Ubuntu 18.04(LTS),20.04(LTS),22.04(LTS)
|
||||
+ CentOS Stream 8,9
|
||||
+ RHEL 8(8.7),9(9.1)
|
||||
+ Debian 10,11
|
||||
+ openSUSE 15
|
||||
|
||||
### Windows OS
|
||||
|
||||
+ Windows 10 版本 1607 或更高版本
|
||||
+ Windows Server 2012 或更高版本
|
||||
|
||||
## Installation - 安装
|
||||
|
||||
### Linux
|
||||
|
||||
+ 下载源码后编译
|
||||
+ 第一步,下载源码
|
||||
|
||||
```bash
|
||||
cd /tmp/ && wget https://github.com/fjykTec/ModernWMS/archive/refs/heads/master.zip
|
||||
```
|
||||
|
||||
+ 第二步,安装.NET SDK 、运行时 和 NodeJS
|
||||
|
||||
```bash
|
||||
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
|
||||
sudo dpkg -i packages-microsoft-prod.deb
|
||||
sudo apt-get update && sudo apt-get install -y dotnet-sdk-7.0
|
||||
sudo apt-get install -y aspnetcore-runtime-7.0
|
||||
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
|
||||
sudo apt install -y nodejs
|
||||
```
|
||||
|
||||
+ 第三步,编译前端和后端
|
||||
|
||||
```bash
|
||||
cd /tmp/ && unzip master.zip && cd ./ModernWMS-master
|
||||
mkdir -p /ModernWMS/frontend/ /ModernWMS/backend/
|
||||
cd ./frontend/ && yarn && yarn build && cp -rf ./frontend/dist/* /ModernWMS/frontend/
|
||||
cd ./backend/ && sudo dotnet publish && cp -rf ./backend/ModernWMS/bin/Debug/net7.0/publish/* /ModernWMS/backend/
|
||||
```
|
||||
|
||||
+ 第四步,安装nginx
|
||||
|
||||
```bash
|
||||
cd /tmp/ && wget http://nginx.org/download/nginx-1.18.0.tar.gz
|
||||
tar -zxvf nginx-1.18.0.tar.gz && cd nginx-1.18.0
|
||||
./configure --prefix=/etc/nginx --with-http_secure_link_module --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module
|
||||
make && make install
|
||||
```
|
||||
### Windows
|
||||
|
||||
+ 下载源码后编译部署
|
||||
+ 第一步,下载源码
|
||||
```PowerShell
|
||||
cd c:\
|
||||
wget -Uri https://github.com/fjykTec/ModernWMS/archive/refs/heads/master.zip -OutFile master.zip
|
||||
Expand-Archive -Path C:\master.zip -DestinationPath C:\
|
||||
```
|
||||
+ 第二步,安装.NET SDK 、运行时 和 NodeJS
|
||||
```CMD
|
||||
wget -Uri https://download.visualstudio.microsoft.com/download/pr/35660869-0942-4c5d-8692-6e0d4040137a/4921a36b578d8358dac4c27598519832/dotnet-sdk-7.0.101-win-x64.exe -OutFile dotnet-sdk-7.0.101-win-x64.exe
|
||||
dotnet-sdk-7.0.100-win-x64.exe /install /quiet /norestart
|
||||
wget -Uri https://nodejs.org/dist/v16.13.1/node-v16.13.1-x64.msi -OutFile node-v16.13.1-x64.msi
|
||||
msiexec /i .\node-v16.13.1-x64.msi /passive /norestart
|
||||
```
|
||||
+ 第三步,编译前端和后端
|
||||
```
|
||||
md C:\ModernWMS\frontend\
|
||||
md C:\ModernWMS\backend\
|
||||
cd c:\ModernWMS-master\backend
|
||||
dotnet publish
|
||||
copy-item -path ".\backend\ModernWMS\bin\Debug\net7.0\publish\" -destination "C:\ModernWMS\backend\" -recurse
|
||||
cd c:\ModernWMS-master\frontend
|
||||
yarn && yarn build
|
||||
copy-item -path ".\frontend\dist\" -destination "C:\ModernWMS\frontend\" -recurse
|
||||
```
|
||||
+ 第四步,安装nginx并启动
|
||||
```
|
||||
cd C:\
|
||||
wget -Uri http://nginx.org/download/nginx-1.16.1.zip -OutFile nginx-1.16.1.zip
|
||||
Expand-Archive -Path C:\nginx-1.16.1.zip -DestinationPath C:\
|
||||
start .\nginx-1.16.1\nginx.exe
|
||||
cd C:\ModernWMS\backend\
|
||||
dotnet ModernWMS.dll --urls http://0.0.0.0:20011
|
||||
```
|
||||
|
||||
### Docker
|
||||
|
||||
|
||||
+ 下载源码后编译
|
||||
+ 第一步,下载源码
|
||||
|
||||
```bash
|
||||
cd /tmp/ && wget https://github.com/fjykTec/ModernWMS/archive/refs/heads/master.zip
|
||||
```
|
||||
|
||||
+ 第二步,编译前端和后端
|
||||
|
||||
```bash
|
||||
cd /tmp/ && unzip master.zip && cd ./ModernWMS-master
|
||||
cd ./frontend/ && yarn && yarn build && cp -rf ./frontend/dist/* ./docker/frontend/
|
||||
cd ./backend/ && sudo dotnet publish && cp -rf ./backend/ModernWMS/bin/Debug/net7.0/publish/* ./docker/backend/
|
||||
```
|
||||
+ 第三步,部署
|
||||
|
||||
```bash
|
||||
cd /tmp/ModernWMS-master/docker/
|
||||
docker build -t modernwms:1.0 .
|
||||
docker run -d -p 80:80 modernwms:1.0 /bin/bash ./run.sh
|
||||
```
|
||||
## Usage - 用法
|
||||
|
||||
```
|
||||
打开浏览器,进入:http://127.0.0.1 或者 http://部署电脑的IP地址
|
||||
```
|
||||
<h4>
|
||||
<a href="https://wmsonline.ikeyly.com">体验地址入口</a>
|
||||
</h4>
|
||||
|
||||
![image0.png](https://gitee.com/modernwms/ModernWMS/raw/develop/image0.png)
|
||||
|
||||
![image1.png](https://gitee.com/modernwms/ModernWMS/raw/develop/image1.png)
|
||||
|
||||
![image2.png](https://gitee.com/modernwms/ModernWMS/raw/develop/image2.png)
|
||||
|
||||
## Contact - 联系
|
||||
|
||||
<h4>
|
||||
<a href="https://github.com/fjykTec/ModernWMS/issues/new?template=bug_report.md&title=[BUG]">提交一个Bug</a>
|
||||
</h4>
|
||||
<h4>
|
||||
<a href="https://github.com/fjykTec/ModernWMS/issues/new?template=feature_request.md&title=[FR]">提交一个建议</a>
|
||||
</h4>
|
||||
<h4>
|
||||
<a href="https://jq.qq.com/?_wv=1027&k=YgVJGWnI">加入QQ群 757128595</a>
|
||||
</h4>
|
||||
|
||||
## License - 版权信息
|
||||
该项目使用的是 [MIT](https://opensource.org/licenses/MIT/) 协议. 详情查阅[LICENSE.txt](https://github.com/fjykTec/ModernWMS/master/LICENSE).必须遵守此协议。
|
18
docker/Dockerfile
Normal file
18
docker/Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM ubuntu:22.04
|
||||
|
||||
RUN apt-get update && apt-get install -y wget curl
|
||||
RUN wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
|
||||
&& dpkg -i packages-microsoft-prod.deb \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y aspnetcore-runtime-7.0 nginx \
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_16.x | /bin/bash - \
|
||||
&& apt install -y nodejs \
|
||||
&& mkdir -p /app/ /frontend/
|
||||
WORKDIR /app
|
||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||
COPY ./frontend /frontend/
|
||||
COPY ./backend /app/
|
||||
COPY ./run.sh /app/run.sh
|
||||
RUN chmod u+x /app/run.sh
|
||||
EXPOSE 80
|
||||
ENTRYPOINT ["/bin/bash"]
|
0
docker/backend/web.config
Normal file
0
docker/backend/web.config
Normal file
0
docker/frontend/index.html
Normal file
0
docker/frontend/index.html
Normal file
60
docker/nginx.conf
Normal file
60
docker/nginx.conf
Normal file
|
@ -0,0 +1,60 @@
|
|||
#user nobody;
|
||||
worker_processes 1;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '[$remote_addr] [conn:$connection] [conn_req:$connection_requests] '
|
||||
'[$time_iso8601] "$request" [$http_referer] [$http_user_agent] '
|
||||
'[body:$body_bytes_sent] [request_length:$request_length] [status:$status] [request_time:$request_time] [$http_UserName]';
|
||||
|
||||
#access_log logs/access.log main;
|
||||
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
||||
#keepalive_timeout 0;
|
||||
keepalive_timeout 65;
|
||||
#gzip on;
|
||||
|
||||
#wms ModernWMS backend
|
||||
#server {
|
||||
#listen 21011;
|
||||
#server_name server localhost; # xxx.xxx.xxx.xxx your ip address
|
||||
#location / {
|
||||
# proxy_pass http://127.0.0.1:20011;
|
||||
# root html;
|
||||
# index index.html index.htm;
|
||||
# proxy_set_header X-Real-IP $remote_addr;
|
||||
#}
|
||||
#proxy_send_timeout 300;
|
||||
#proxy_read_timeout 300;
|
||||
#
|
||||
#client_max_body_size 1024m;
|
||||
# client_header_buffer_size 10m;
|
||||
# large_client_header_buffers 4 10m;
|
||||
# proxy_buffers 16 1024k;
|
||||
# proxy_buffer_size 1024k;
|
||||
#}
|
||||
#wms ModernWMS frontend
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
location / {
|
||||
root /frontend/;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
9
docker/run.sh
Normal file
9
docker/run.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
# start 1
|
||||
/usr/sbin/nginx -g 'daemon off;' > /var/log/start1.log 2>&1 &
|
||||
# start 2
|
||||
dotnet /app/ModernWMS.dll --urls http://0.0.0.0:21011 > /var/log/start2.log 2>&1 &
|
||||
# just keep this script running
|
||||
while [[ true ]]; do
|
||||
sleep 1
|
||||
done
|
BIN
image0.png
Normal file
BIN
image0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 95 KiB |
BIN
image1.png
Normal file
BIN
image1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 125 KiB |
BIN
image2.png
Normal file
BIN
image2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 204 KiB |
Loading…
Reference in a new issue