Tag: 持续集成是可能

在Docker上使用Systemd的CentOS

我实际上正在使用Gitlab-CI对我的剧本进行自动化testing,Ubuntu工作得很好,没有问题。 我实际上遇到的问题是CentOS和Systemd,首先是Playbook(在CentOS7中安装Postgres 9.5): – name: Ensure PostgreSQL is running service: name: postgresql-9.5 state: restarted ignore_errors: true when: – ansible_os_family == 'RedHat' 所以,这是我得到,如果我想在容器内启动postgres: Failed to get D-Bus connection: Operation not permitted\nFailed to get D-Bus connection: Operation not permitted\nFailed to get D-Bus connection: Operation not permitted\nFailed to get D-Bus connection: Operation not permitted\nFailed to get D-Bus connection: […]

将Docker部署到生产中:零停机

我没有看到如何使用Docker实现零宕机部署。 比方说,我有一个运行MyWebApp的PHP容器,由同一台服务器上的Nginx容器提供服务。 然后我改变一些代码,因为Docker容器是不可变的,所以我必须用代码更改再次构build/部署MyWebApp容器。 在这个过程中, MyWebAppclosures了。 以前我会使用Ansible或类似的部署我的代码,然后将新版本目录符号链接到networking目录…零停机! Docker和单个服务器应用程序可以实现零停机时间部署吗?