同步操作将从 Apache ShenYu/shenyu 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
The shenyu-dist
module is used to build packages and releases.
Then you will see the dist
directory in root directory.
docker build
cd shenyu
mvn clean package -Prelease,docker -Dmaven.javadoc.skip=true -Dmaven.test.skip=true
If build success, run docker images
and you will see like this.
REPOSITORY TAG IMAGE ID CREATED SIZE
apache/shenyu-bootstrap 2.2.1 0002944cca64 About an hour ago 200MB
apache/shenyu-admin 2.2.1 1a4b73d6dd6d About an hour ago 215MB
run docker
docker network create shenyu
docker run -d -p 9095:9095 --net shenyu apache/shenyu-admin:2.2.1
docker run -d -p 9195:9195 --net shenyu apache/shenyu-bootstrap:2.2.1
If you want to override environment variables, you can do like this.
docker run -e "SPRING_PROFILES_ACTIVE=mysql" -e "spring.datasource.url=jdbc:mysql://192.168.1.9:3306/shenyu?useUnicode=true&characterEncoding=utf-8&useSSL=false" -e "spring.datasource.password=123456" -d -p 9095:9095 --net shenyu apache/shenyu-admin:2.2.1
Another way, bind volume and mounts
Put your application.yml
in xxx directory, then run like this.
docker run -v D:\tmp\conf:/opt/shenyu-admin/conf/ -d -p 9095:9095 --net shenyu apache/shenyu-admin:2.2.1
admin/123456
, enjoy it ^_^Note: The Docker environment uses an H2 database by default.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。