How to tune store step on Wercker

南楼画角 提交于 2021-01-27 20:39:29

问题


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

Size exceeds maximum size of 1000MB

How can I disable store step or increase store size ?

This is part of 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

回答1:


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

step from your wercker.yml.

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.



来源:https://stackoverflow.com/questions/40219719/how-to-tune-store-step-on-wercker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!