小编yei*_*iel的帖子

如何自动化Multi-Arch-Docker Image构建

我已经在github上将dockerjs应用程序码头化了。我的Dockerfile基于官方的nodejs映像。官方节点存储库无缝支持多种架构(x86,amd64,arm)。这意味着我可以在不同的机器上构建完全相同的Dockerfile,从而为相应的体系结构生成不同的映像。

因此,我也尝试为我的应用程序无缝提供相同的体系结构。但是如何?我的目标是尽可能地使其自动化。我知道理论上我需要创建一个docker-manifest,它充当docker-repo并将最终用户-docker-clients重定向到其合适的映像。

Docker-Hub本身可以监视github存储库并启动自动构建。多数民众赞成在照顾amd64图像。但是其余的架构呢?还有一个名为“ TravisCI”的服务,我想它可以在qemu的帮助下进行手臂建设。然后,我认为清单清单可以随后静态引用这两个仓库。但是,这仍然使一些架构无法实现。

但是,使用多种服务/方式来构建同一个应用程序是错误的。有谁知道这个问题更好,更完整的解决方案?它基本上是通过几台机器运行相同的dockerfile并将它们记录在清单中。

github travis-ci docker dockerhub

5
推荐指数
1
解决办法
767
查看次数

yii2 and load balancing

I'm working on a PHP Yii2 application. I have a strange problem with yii2 ,here is my problem.

As we known, there is a web\assets folder in Yii2 project and it will load it's own asset bundle,but when configuring load balance , I found that chrome's developer tools console throw some errors below:

http://firekylin.eastasia.cloudapp.azure.com/assets/fde0fce1/css/bootstrap.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://firekylin.eastasia.cloudapp.azure.com/assets/ebd0699a/css/AdminLTE.min.css Failed to load resource: the server responded with a status of …
Run Code Online (Sandbox Code Playgroud)

javascript css apache load-balancing yii2

4
推荐指数
1
解决办法
942
查看次数

标签 统计

apache ×1

css ×1

docker ×1

dockerhub ×1

github ×1

javascript ×1

load-balancing ×1

travis-ci ×1

yii2 ×1