diff --git a/README.md b/README.md index b4e4b40..ad009ea 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ - [Usage](#usage) - [Contact](#contact) - [License](#license) + - [Donate](#donate) ## Introduction @@ -170,7 +171,37 @@ ### Docker(Optional) -+ download the source code and compile ++ Approach 1, download the image from docker hub + + + Step 1, install docker and download the image + + ```bash + sudo apt install docker.io + sudo docker pull modernwms/modernwms:1.0 + ``` + + + Step 2,deploy + + ```bash + sudo docker run -d -p 20011:20011 -p 80:80 modernwms/modernwms:1.0 ./run.sh + sudo docker ps -a | awk 'NR>1 && $2=="modernwms/modernwms:1.0" {print $1}' + sudo docker exec -it /bin/bash + ``` + + After entering the Docker container, execute the following command in the container. + + ```bash + grep -rl "http://127.0.0.1:20011" /frontend | xargs sed -i 's#http://127.0.0.1:20011#http://IP address:20011#g' + exit + ``` + + restart container + + ```bash + sudo docker restart + ``` + ++ Approach 2, Build your own image + Step 1, download the source code ```bash @@ -240,3 +271,10 @@ ## License Distributed under the [MIT](https://opensource.org/licenses/MIT/) License. See [LICENSE.txt](https://github.com/fjykTec/ModernWMS/master/LICENSE) for more information.This must be observed. + +## Donate + +If it's helpful to you, you can donate us by alipay,by wechat. Your support will encourage us to continue creating + +image3 +image4 diff --git a/README.zh_CN.md b/README.zh_CN.md index 6008e5c..3365c9a 100644 --- a/README.zh_CN.md +++ b/README.zh_CN.md @@ -59,6 +59,7 @@ - [联系我们](#联系我们) - [版权信息](#版权信息) - [特别声明](#特别声明) + - [捐赠](#捐赠) ## 介绍 @@ -171,7 +172,37 @@ ### Docker -+ 下载源码后编译 ++ 方法 1: 直接从dockerhub中下载镜像 + + + Step 1, 安装docker,下载镜像 + + ```bash + sudo apt install docker.io + sudo docker pull modernwms/modernwms:1.0 + ``` + + + Step 2,部署 + + ```bash + sudo docker run -d -p 20011:20011 -p 80:80 modernwms/modernwms:1.0 ./run.sh + sudo docker ps -a | awk 'NR>1 && $2=="modernwms/modernwms:1.0" {print $1}' + sudo docker exec -it /bin/bash + ``` + + 进入docker容器后,在容器中执行以下命令 + + ```bash + grep -rl "http://127.0.0.1:20011" /frontend | xargs sed -i 's#http://127.0.0.1:20011#http://IP address:20011#g' + exit + ``` + + 重启容器 + + ```bash + sudo docker restart + ``` + ++ 方法 2: 自行构建镜像 + 第一步,下载源码 ```bash @@ -244,3 +275,10 @@ 本项目已加入 [dotNET China](https://gitee.com/dotnetchina) 组织。
![dotnetchina](https://gitee.com/dotnetchina/home/raw/master/assets/dotnetchina-raw.png "dotNET China LOGO") + +## 捐赠 + +如果您觉得我的开源库可以帮到您,请我们的作者喝杯咖啡吧,您的支持将鼓励我们继续创作。 + +image3 +image4 \ No newline at end of file diff --git a/alipay.jpg b/alipay.jpg new file mode 100644 index 0000000..143ed41 Binary files /dev/null and b/alipay.jpg differ diff --git a/wechat.jpg b/wechat.jpg new file mode 100644 index 0000000..688871c Binary files /dev/null and b/wechat.jpg differ