2

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
Roman Cherepanov
  • 1,639
  • 2
  • 24
  • 44

1 Answers1

2

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.

ocean
  • 1,335
  • 15
  • 26
  • how to use Percona as aervice? [Here](http://devcenter.wercker.com/docs/services/) I didn't find Percona as supported service. – Roman Cherepanov Oct 26 '16 at 11:05
  • 1
    I haven't `- internal/store-container` step in my `wercker.yml` but nevertheless I have `store` step on build page. Is `store` step is default Wercker step? – Roman Cherepanov Oct 26 '16 at 11:10
  • A service is just a call to a docker container. There's more info on configuring services at http://devcenter.wercker.com/docs/services/linking-services.html and you could probably use the Percona one from https://hub.docker.com/_/percona/ – ocean Oct 26 '16 at 11:42
  • Ah yes, maybe you can't stop that store step at the end. I know other have used Wercker to build Java apps (which are often large), so it must be possible to do without hitting the 1GB barrier. Have you tried asking on the Wercker Slack channel? – ocean Oct 26 '16 at 11:47
  • yes, I asked on Wercker Slack and they advised me to delete folders from `$WERCKER_SOURCE_DIR`. So I decided to delete all Java build artifacts using this script: `- script: name: remove node_modules folder from output code: find $WERCKER_SOURCE_DIR -name "*.jar" -type f -delete` – Roman Cherepanov Oct 26 '16 at 12:41