如何在Wercker上调整商店步骤 [英] How to tune store step on Wercker

查看:54
本文介绍了如何在Wercker上调整商店步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Wercker上运行构建时失败,因为在存储步骤中出现错误:

When I run build on Wercker it is failed because I get error at store step:

大小超过了1000MB的最大大小

Size exceeds maximum size of 1000MB

如何禁用存储步骤增加存储大小?

这是 wercker.yml 的一部分:

box: java

build:
  steps:
    - script:
        name: create test db
        code: |
          sudo apt-get install -y percona-server-server-5.6
          sudo service mysql start
          #sql to create db

    - script:
        name: install gradle
        code: |
          wget https://services.gradle.org/distributions/gradle-2.8-all.zip
          unzip gradle-2.8-all.zip

    - script:
        name: gradle build
        code: |
          gradle-2.8/bin/gradle clean build --stacktrace

推荐答案

是否需要启用Wercker存储"步骤?通常主要用于调试构建过程(此后允许您下载并检查构建容器).我不认为有增加尺寸的方法,但是您可以通过以下方法将其关闭:

Do you need the Wercker "store" step enabled? It's normally used mainly to debug your build process (by allowing you to download and inspect the build container afterwards). I don't think there's a way of increasing the size, but you can certainly turn it off, by removing the:

- internal/store-container

从您的 wercker.yml 中退出.

将对您的大型容器造成影响的一件事是,您正在内部在容器中安装Percona MySQL,而建议的做法是为此使用Wercker本地服务.

One of the things that will be contributing to your large container size is that you're installing Percona MySQL internally to your container, when the recommended practice would be to use a Wercker local service for that.

查看维尔克本地服务文档想要查询更多的信息.

Check the Wercker local services documentation for more information.

这篇关于如何在Wercker上调整商店步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆