Comments (7)
Docker support for Koishi is now available on Docker Hub: https://hub.docker.com/r/koishijs/koishi (version 1.12.0). docker-compose.yml can be used to deploy CoolQ, CQHTTP, MySQL and Koishi very quickly.
More Things To-Do
- Write instructions for Docker on Koishi website
- Port Docker support to Koishi v2
-
Install plug-ins automatically -
Use environment variables to initialize (type
,port
,server
,selfId
, MySQL configuration)
Discussion
The starting script start.js is basically the same as koishi init
, but use environment variables. Is it possible to add something like koishi init -d
, letting it read environment variables to initialize configuration file?
from koishi.
Due to the sunset of CoolQ and CQHTTP, we are now pending Mrs4s/go-cqhttp#7.
from koishi.
I don't think building a Docker image for Koishi itself is a good idea. Docker images should be built by upstream developers.
Anyway, is this Docker image a base image for other Docker images of apps depend on Koishi be built? I think building an official image like this may also be a good idea. eg.
FROM koishi
WORKDIR /usr/src/app
COPY ./package*.json ./
RUN npm ci
COPY . ./
RUN npm run build
CMD npm start
Another choice is, to build an ONBUILD
image for quick deployment.
from koishi.
@purerosefallen Thank you for your suggestions! However, this official Docker image is mainly for users who want to quickly deploy only Koishi and public plugins with one-click. For upstream developers, I think that building your own Docker image based on Node is simpler, and this official image for Koishi could be a reference for you.
from koishi.
Due to the down of CoolQ and CQHttp, the example docker-compose.yml
file's CQHttp backend could be replaced by either of these below.
https://hub.docker.com/r/scjtqs/mirai-cqhttp
https://hub.docker.com/r/nanahira/go-cqhttp
The 1st one is a CQHttp run on Mirai, while the 2nd one is my own fork of go-cqhttp . You may consider either.
from koishi.
@purerosefallen Thank you for your Docker image! I have updated docker-compose.yml
in branch docker.
from koishi.
Using Docker page has been released on Koishi website. Closing this issue now.
from koishi.
Related Issues (20)
- Bug: 插件不显示提供的指令 HOT 1
- Bug: adapter-satori 连 Chronocat 后 READY 信令内没有 status 字段 HOT 4
- Feature: 支持别名的过滤器
- 添加 SECURITY.md HOT 2
- Bug: yarn pub 无法填写otp HOT 3
- Bug: Schema相同的属性未正确合并 HOT 1
- Bug: 无法在局域网访问网页面板 HOT 3
- Bug: yarn pub 无法正常上传包 HOT 2
- Bug: 多余请求头导致拿不到头像 HOT 2
- Bug: 使用 windows 安装的 podman-desktop 启动镜像时老是尝试启动 /mnt/c/.../powershell.exe 但报错 ENOENT HOT 1
- Feature: Schema.string() 添加代码编辑器的 role
- Bug: Schema.array() 的`添加项目`按钮行为不正常,在特定场景不可用等
- Bug(Schema): Computed with Union Not Showing Branches Correctly HOT 2
- Bug: help 指令在遇到 .platform 或其他情况下回复错误
- Bug: 在使用指令管理 改变一些层级后,指令管理选项消失 HOT 2
- feat(core): parser[number]: support delimiters in number
- Bug: 使用adapter-satori的机器人会出现i18n错误 HOT 1
- adapter-qq是否能增加支持markdown模板和原生markdown?
- 云服务器如何公网连接控制台 HOT 2
- Bug(schemastery-vue): Schema.dict添加项目的体验优化 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koishi.