From fa09111fabc3dd07c9ca8d4b43912ec912a92293 Mon Sep 17 00:00:00 2001 From: zeekling Date: Fri, 28 May 2021 02:19:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0bolo=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bolo/README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 bolo/README.md diff --git a/bolo/README.md b/bolo/README.md new file mode 100644 index 0000000..178d820 --- /dev/null +++ b/bolo/README.md @@ -0,0 +1,31 @@ + +## 使用 + +- 将[https://git.zeekling.cn/linux/dockerFiles/src/branch/master/bolo](https://git.zeekling.cn/linux/dockerFiles/src/branch/master/bolo) + 下面的dockerFiles和 settings.xml放置到博客bolo-solo的下面,执行下面命令编译并导出镜像: + + ```sh + docker build -t "zeek/bolo" . + docker save -o /tmp/zeek_bolo.tar zeek/bolo + ``` +- 将`/tmp/zeek_bolo.tar`上传到服务器`/tmp`目录下面,并且导入: +```sh +docker load --input=/tmp/zeek_bolo.tar +``` + +- 参照下面脚本新建bolo镜像。 +```sh +docker stop bolo +docker rm bolo +docker run --detach --name bolo --network=host \ + --env RUNTIME_DB="MYSQL" \ + --env JDBC_USERNAME="root" \ + --env JDBC_PASSWORD="123456" \ + --env JDBC_DRIVER="com.mysql.cj.jdbc.Driver" \ + --env SERVER_HOST="www.zeekling.cn" \ + --env SERVER_PORT="443" \ + --env JDBC_URL="jdbc:mysql://127.0.0.1:3306/solo?useUnicode=yes&characterEncoding=UTF-8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC" \ + -v /dockerData/bolo/bolo-fantastic:/opt/bolo/skins/bolo-fantastic \ + zeek/bolo --listen_port=8080 --server_scheme=https --server_host=www.zeekling.cn --lute_http=http://127.0.0.1:8249 \ +``` +