问题
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