在低stream量/负载服务器上生产的专用服务器上启动整个临时环境是否现实? 由于我们前几天刚刚推出的应用程序,我们希望节省购买另一个专用服务器的一些成本,仅用于暂存运行,因为stream量低于最大服务器负载的50%。 我们正在考虑启动一个docker容器,它将启动运行的所有docker集装箱,在生产箱上运行所有的testing。 然后,如果testing通过,构build部署和容器被销毁。
我有一些奇怪的问题试图使用nginx的上游指令自动化Docker容器的部署。 出于某种原因,当我手动做下面的工作,但是当我尝试自动化它,我没有得到一致的结果。 基本上我把最新的图像停止,删除2个正在运行的容器中的1个然后启动容器然后更新nginx上游conf文件重新加载nginxconfiguration。 重复第二个容器。 看起来很简单,但由于某种原因,我可以“让这个工作在一个bash脚本所有的时间。 我正在使用seige来加载testing应用程序。 siege -d1 -t75S -c25 http://192.168.49.4:8087 我的脚本自动化部署运行脚本之前,最新的图像被拉。 #! /bin/bash appname=appnamexyz; appport=8000; host_ip=192.168.49.4; registry=192.168.254.96; echo "upstream api_servers {${nl} server $(docker port ${appname}-1 ${appport}) max_fails=2 fail_timeout=1s;${nl} server $(docker port ${appname}-2 ${appport}) max_fails=2 fail_timeout=1s;${nl} }" > /etc/nginx/conf.d/api_upstream.conf sed -i "s/server $(docker port $appname-1 $appport)/server xxx/g" /etc/nginx/conf.d/api_upstream.conf docker stop $appname-1 docker rm -f $appname-1 […]
HP Operations Orchestration 9.07(现在接近EOL)在端口8443上的Jetty 6.1.14 Web应用程序中运行。 我怎样才能得到Jetty 6.1.14在80端口运行一个单独的,基本的networking/文件服务器? 到目前为止,我在jetty.xmlconfiguration文件中做了什么不成功: <Configure id="FileServer" class="org.mortbay.jetty.Server"> <Call name="addConnector"> <Arg> <New class="org.mortbay.jetty.nio.SelectChannelConnector"> <Set name="port">80</Set> </New> </Arg> </Call> <Set name="handler"> <New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection"> <Set name="handlers"> <Array type="org.mortbay.jetty.ResourceHandler"> <Item> <New id="Contexts" class="org.mortbay.jetty.handler.ResourceHandler"/> <Set name="directoriesListed">true</Set> <Set name="welcomeFiles"> <Array type="String"><Item>index.html</Item></Array> </Set> <Set name="resourceBase">.</Set> </New> </Item> <Item> <New class="org.mortbay.jetty.server.handler.DefaultHandler"></New> </Item> </Array> </Set> </New> </Set> <Call […]
我尝试在Docker中使用blackmagic,但不成功。 这里是“bmagic”的一些输出。 为什么说“找不到卡”? 以及如何解决? $ bmagic LOG (2015-02-04 20:37:19) List of devices with IRQ 48: LOG (2015-02-04 20:37:19) 0000:27:00.0 Vendor=bdbd Device=a11b Class=0400 IRQ=48 (pin 1) Base0=df700000 (Vendor bdbd: Device a11b) LOG (2015-02-04 20:37:19) List of devices with IRQ 58: LOG (2015-02-04 20:37:19) 0000:24:00.0 Vendor=bdbd Device=a11b Class=0400 IRQ=58 (pin 1) Base0=dfd00000 (Vendor bdbd: Device a11b) LOG […]
当我进入EB实例时,我可以连接到RDS实例。 但是,一旦进入Docker(我已经通过在Docker下运行bashtesting过了),我无法连接到它。 但是,我可以访问更广泛的互联网。 我可以ping google.com成功。 我如何连接到这个RDS实例?
我有一个运行几个docker的容器的主机。 这个主机有几个networking接口,我的目标是使一些暴露的端口从容器只能通过某些接口访问,并阻止访问他人。 我想使用主机的iptables的。 但它不可能简单地做到: iptables -I INPUT -i vlan2 –dport 80 -j DROP 因为数据包是通过预先路由转发的。 iptables -t nat -L PREROUTING 2 Chain PREROUTING (policy ACCEPT) target prot opt source destination DOCKER all — anywhere anywhere ADDRTYPE match dst-type LOCAL Chain DOCKER (2 references) target prot opt source destination DNAT tcp — anywhere anywhere tcp dpt:mysql to:172.17.0.2:33066 […]
我有一个基于eXist-db的应用程序。 这基本上是一个使用Jetty的Java Web应用程序。 它运行在Apache代理之后的远程Linux服务器上。 我使用下面的Apacheconfiguration: ServerName domain.com ProxyRequests off ProxyPass /myapp http://localhost:8899/exist/apps/myapp ProxyPassReverse /myapp http://localhost:8899/exist/apps/myapp 一切工作正常,除了会议。 每次请求会话都会被更新。 这意味着请求Cookie头不包含JSESSIONID但响应Set-Cookie头是类似JSESSIONID=oryq5odyt3f79xxax25n7x0h;Path=/exist 。 此外,我检查确认会话是每次新的应用程序中的会话ID。 我已经尝试了三种testing场景: testing场景A: 客户端:Windows 7,Google Chrome 服务器:Ubuntu 12.04.4 LTS(GNU / Linux 3.11.0-26-generic x86_64),代理Apache / 2.4.9 testing场景B: 客户端:Windows 7,Google Chrome 服务器:CentOS 6.6版(最终版),Apache / 2.2.15代理版 testing场景C(本地): 客户端:Windows 7,Google Chrome 服务器(相同的笔记本电脑):Windows 7,没有代理 问题出现在A和B两种情况下,但不在C中 任何想法如何使会议工作?
我试图使用主机名连接到docker集装箱。 即:我将浏览器连接到web01.docker.example.org(假设* .docker.example.org上的通配符DNSlogging指向我的泊坞窗)。 如何让docker将这个请求转发给我的nginx docker? 这个想法是由apache的VirtualNameHost模型启发的,除了VirtualHost而不是一个正在运行的容器。
所以我有一个名为“webby”的docker容器,我试图重新启动。 我的主机系统是:Linux docker01 3.13.0-52-generic#86-Ubuntu SMP Mon May 4 04:32:59 UTC 2015 x86_64 x86_64 x86_64 GNU / Linux 我将以下内容添加到/ etc / default / docker: DOCKER_OPTS="-r=true" 我确定我的容器是在重新启动之前启动的。 但重启后容器还没有启动。 然后我尝试在/etc/init/scott.conf创build一个init脚本 description "Docker startup script for webby" author "me" start on filesystem and started docker.io stop on runlevel [!2345] respawn script /usr/bin/docker start -a webby end script 但是,重新启动后,也不启动容器。 任何想法我做错了什么?
我正在使用docker-compose.yml文件在开发环境中使用docker-compose.yml ,其中列出了我需要的所有容器。 另外我有一个集中的git回购,Jenkins服务器和另一个服务器,我要保持分期和生产。 所以问题是如何更好地组织部署过程。 现在git push在git服务器端触发Jenkins构build作业。 根据分支名称(分段或生产),将触发不同的作业。 构build作业使用docker-compose来创build整个环境并运行testing。 那么如何将新容器推送到分段/生产环境? 一种方法是将他们推送到私人或公共docker注册处,但更新生产中容器的最佳做法是什么? jenkins服务器应该只是SSH并运行原始kill , rm , pull和run命令? 我没有看到例子。