Coder Social home page Coder Social logo

xiaokexiang / mirai-docker-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rxrw/mirai-docker-starter

0.0 0.0 0.0 19.05 MB

使用Docker直接启动Mirai

License: GNU Affero General Public License v3.0

Shell 0.30% JavaScript 98.40% Batchfile 0.26% Dockerfile 1.04%

mirai-docker-starter's Introduction

logo
title

Gitter Actions Status

Mirai 是一个在全平台下运行,提供 QQ Android 和 TIM PC 协议支持的高效率机器人框架

这个项目的名字来源于

京都动画作品《境界的彼方》栗山未来(Kuriyama Mirai)

CRYPTON初音未来为代表的创作与活动(Magical Mirai)

图标以及形象由画师DazeCake绘制

mirai-http-docker

Mirai HTTP Docker 一键启动环境

Mirai-API-http 插件 提供 HTTP API 供所有语言使用 mirai

这个项目旨在对想直接用Mirai-API-http进行开发的同学们直接启动 Mirai + HTTP 服务

玩法

一键启动:

# 生成配置文件
docker run --rm -it -v ./config:/app/config reprover/mirai-http:latest

#(如果需要其它插件,可以映射目录进去)
docker run --rm -it -v ./config:/app/config -v ./plugins:/app/plugins reprover/mirai-http:latest


#按自己需要修改配置然后运行
docker run -d -p 8080:8080 -v ./config:/app/config [-v ./plugins:/app/plugins] reprover/mirai-http:latest

容器默认开 8080 端口,与 Mirai-HTTP-API 默认配置一致,有需要可以自己映射

建议使用 docker-compose 一键启动:

#第一次生成配置文件
docker-compose up

#修改配置文件
docker-compose up -d

当前版本

插件 版本 源代码
mirai-console-loader 2.0.0 https://github.com/iTXTech/mirai-console-loader
mirai-http-api 2.5.0 https://github.com/project-mirai/mirai-api-http
mirai-core-all 2.10.1 https://github.com/project-mirai/mirai-repo-mirror

限制

docker

docker 是容器服务,因此端口开放但网络出口是 docker 的 bridge 环境。

建议编写好的项目直接使用 docker-compose 同网络调用

也可将 network 的 mode 设置为 host 使用主机网卡。

console

console 启动的时候会检查更新,目前已经把最新版 stable-2.7.0 内置了,有需要可以调整config.json

cli

由于是 docker 脚本,因此直接启动是启动的 console 无交互界面,如需进交互,可以

docker-compose exec mirai

不知道是什么原因,在非交互界面时使用 docker run 运行起来的进程关不掉,可以用 docker kill ,也可以在运行的时候使用 docker run -it 进入交互式界面。在 docker-compose 下是正常的。

本镜像版本与 mirai-console-loader + mirai-http-api 版本保持同步

说明

项目中的 mcl 是来自官方 mirai-console-loadergithub release, plugins 目录下的 mirai-http-api 来自 github release

大家可以随意添加自己需要的插件进去。 ~

mirai-docker-starter's People

Contributors

rxrw avatar skyer520 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.