plusDiscuss
V2EX  ›  Docker

每次部署更新代码,重新编译 Docker 镜像,再更新到生产环境,改动的代码地方很多,但都是比较频繁的小改动。要耗费不少时间,是姿势不对?还是只能这样了?

  •  
  •   plusDiscuss · May 12, 2020 · 4330 views
    This topic created in 2234 days ago, the information mentioned may be changed or developed.
    没用 docker 的时候,直接推代码,重起服务器大约也就一两分钟就完成了。

    现在用 docker 部署(没上 k8s ),每次更新部署要一二十分钟,是姿势不对吗?
    2 replies    2020-05-12 14:17:21 +08:00
    tddxx
        1
    tddxx  
       May 12, 2020
    jenkins+dcoker
    Kilerd
        2
    Kilerd  
       May 12, 2020
    编译的时候没上缓存,导致编译速度很慢? 试下把缓存加上?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4823 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 01:09 · PVG 09:09 · LAX 18:09 · JFK 21:09
    ♥ Do have faith in what you're doing.