Comments (5)
dockerfile 以及 docker-compose 一键拉起类正式环境(#38)
from egg-cnode.
@atian25 ,在这边讨论,Docker 支持:
正式环境
- dockerfile 用于构建 egg-cnode 镜像(可以加到 docker hub 自动构建)
- docker-compose.yml 启动一个基本和正式环境完全一致的服务(egg-cnode/redis/mongo)
开发环境
这边 docker 有两种用法:
- docker-compose-dev.yml 只启动 redis/mongo 等数据库及相关服务
- docker-compose-dev.yml 启动测试环境
- docker 构建是分阶段的,package.json 变化才会重新装 node_modules
- 仅 copy 代码消耗可以忽略不计了
- 这样可以很好的解决 “代码在我这里可以跑,在其他人那边就不行了” 的问题
from egg-cnode.
我现在的需求很简单,要提供开发期支持,不然本地 egg-bin test 的时候,要自己启动 redis 和 mongo
部署这个暂时不关心
from egg-cnode.
好的,那我新建一个 compose file 用于启动 mongo/redis
from egg-cnode.
done.
from egg-cnode.
Related Issues (20)
- 当前 cnode.org 官网所运行的是不是当前的源码?如果是的话有些行为是不一致的? HOT 2
- 收不到发送的邮件 HOT 2
- docker-compose.yml中mongodb volumes问题
- 配置Alinode报错nodeinstall --install-alinode ^3 HOT 1
- egg-oauth2-server
- cnode 502, rescue ? HOT 2
- ctx.message 不能使用中文,但是你们源码中大量使用,怎么做到的
- [egg:core:ready_timeout] 10 seconds later redis.js was still unable to finish. HOT 2
- 根目录的app.js一启动是调用了吗?怎么用的? HOT 1
- 怎么调试? HOT 12
- 样例数据
- 没有阿里云怎么部署?
- Bootstrap 升级到3
- egg项目使用egg-sequlize,如何控制应用级别的数据库连接池大小
- 无法登录测试环境
- 求惑,config的数据是如何进入到layout.html模板里面的
- 论坛图床是不是挂了,头像好多看不见
- 论坛无法访问了么? HOT 13
- 运行nodeinstall --install-alinode ^3 报unknow version错误
- bcrypt 的 compare 方法,为什么在 TODO 中建议改成异步的调用方式,同步的调用方式有什么问题么?
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 egg-cnode.