dockerFiles/bolo/README.md

33 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 使用
- 将[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
bash build_docker.sh
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 \
```