Comments (1)
我简单说下docker运行一个应用程序,这并不属于proc_qq的问题,您尽量多使用搜索引擎。
-
编译,参考example, 首先你要用一个ubuntu系统将他编译,并运行 当然你可以用debian,选择docker镜像时要使用相同镜像避免依赖版本不一致。如果你用ubuntu20.04.4, 那么你用的docker镜像就是 ubuntu:20.04.
-
尝试运行一个二进制程序在docker,
1). 运行一个dockerdocker run -d --name ubuntu -itd /bin/bash ubuntu:20.04
, 这样你就有了自己的docker镜像并且在运行
2). 你可以把你的程序和配置文件里,比如叫 myqq 复制到docker里,docker cp myqq ubuntu:
3). 运行你的文件,并尝试安装缺失的库./myqq
最尝需要安装的是 ca-certificates curl libssl-dev openssl -
使用dockerfile制作装好依赖的ubuntu
docker build -t ubuntu:certs .FROM ubuntu:20.04 RUN apt-get -qq update \ && apt-get -qq install -y --no-install-recommends ca-certificates curl libssl-dev openssl
-
把自己的配置文件放在/opt/myqq下 完整路径为 /opt/myqq/myqq, 运行docker,如果您想第一次运行docker的时候可以使用命令行,请加上参数 -it 不要加 -d。您可以仔细查我这个命令行的意思.
docker run --net host --name myqq --workdir=/app -v /opt/myqq -d ubuntu:certs ./myqq
-
您要知道 docker的一些参数 --restart -v -p -it 等,并且学会使用docker logs查看日志
from rust_proc_qq.
Related Issues (20)
- 可选的短信或者设备锁验证 HOT 1
- 让每种配置可以使用回调函数解决,例如设备所验证方式,扫码还是密码登录,扫码的方式,回调扫码,让框架更灵活 HOT 1
- 无法扫码登录 HOT 1
- start(self) 改成 Arc<Client> 以便定时任务使用?
- anyhow报错问题解决办法
- module添加方式 HOT 2
- 登录后怎么保存token HOT 2
- 使用正则或其他对event匹配 HOT 50
- 用 #[impl(ident)] 生成 self.fn_name, 解决生命周期问题
- 教学视频,文档 HOT 1
- [BUG][Request not implement]使用短信解锁设备锁无法使用
- 无法登录 HOT 13
- [功能] 自定义处理ticket
- [功能] modules可为默认(空) HOT 1
- bot_command 功能设为 feature? HOT 3
- [功能] 定时任务支持 HOT 17
- [功能] BotCommand匹配枚举值 HOT 1
- [功能]bot_command模糊匹配帮助 HOT 7
- 恢复会话失败回调 HOT 10
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 rust_proc_qq.